Skip to content

Commit c90f3b8

Browse files
captain5050ojeda
authored andcommitted
clang-format: don't indent namespaces
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 <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 8f3d9f3 commit c90f3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false
482482
MacroBlockBegin: ''
483483
MacroBlockEnd: ''
484484
MaxEmptyLinesToKeep: 1
485-
NamespaceIndentation: Inner
485+
NamespaceIndentation: None
486486
#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
487487
ObjCBlockIndentWidth: 8
488488
ObjCSpaceAfterProperty: true

0 commit comments

Comments
 (0)