clang-format: don't indent namespaces
authorIan Rogers <irogers@google.com>
Thu, 9 Apr 2020 00:13:52 +0000 (17:13 -0700)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Sat, 18 Apr 2020 11:45:18 +0000 (13:45 +0200)
This change doesn't affect existing code. Inner namespace indentation
can lead to a lot of indentation in the case of anonymous namespaces and
the like, impeding readability. Of the clang-format builtin styles
LLVM, Google, Chromium and Mozilla use None while WebKit uses Inner.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
.clang-format

index 6ec5558..2d7754a 100644 (file)
@@ -482,7 +482,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false
 MacroBlockBegin: ''
 MacroBlockEnd: ''
 MaxEmptyLinesToKeep: 1
-NamespaceIndentation: Inner
+NamespaceIndentation: None
 #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
 ObjCBlockIndentWidth: 8
 ObjCSpaceAfterProperty: true