summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2020-04-08 17:13:52 -0700
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2020-04-18 13:45:18 +0200
commitc90f3b8c4b5b7ff3ee7103640a2ab1c960c69645 (patch)
tree44c6fc8d327b7859b93ddd1ff8d1b63778293420 /.clang-format
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlwn-c90f3b8c4b5b7ff3ee7103640a2ab1c960c69645.tar.gz
lwn-c90f3b8c4b5b7ff3ee7103640a2ab1c960c69645.zip
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 <irogers@google.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 6ec5558b516b..2d7754a4b6d8 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