Browse Source

style(clang-format): don't indent `case` statements

Zetok Zalbavar 4 years ago
parent
commit
4367dc601d
2 changed files with 4 additions and 4 deletions
  1. 1 1
      .clang-format
  2. 3 3
      doc/coding_standards.md

+ 1 - 1
.clang-format

@@ -7,7 +7,7 @@ Standard: Cpp11
 IndentWidth: 4
 ContinuationIndentWidth: 4
 AccessModifierOffset: -4
-IndentCaseLabels: true
+IndentCaseLabels: false
 NamespaceIndentation: None
 
 # Spacing

+ 3 - 3
doc/coding_standards.md

@@ -77,9 +77,9 @@ public:
         // Some code here
 
         switch (...) {
-            case 0: {
-                // Some code here
-            }
+        case 0: {
+            // Some code here
+        }
         }
 
         // More code