From: Ian Rogers Date: Thu, 9 Apr 2020 00:13:52 +0000 (-0700) Subject: clang-format: don't indent namespaces X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c90f3b8c4b5b7ff3ee7103640a2ab1c960c69645;p=linux.git 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 Signed-off-by: Miguel Ojeda --- diff --git a/.clang-format b/.clang-format index 6ec5558b516bd..2d7754a4b6d88 100644 --- a/.clang-format +++ b/.clang-format @@ -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