]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Explicitly configure new clang-format-11 options
authorOndřej Surý <ondrej@sury.org>
Mon, 24 Aug 2020 07:23:06 +0000 (09:23 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 8 Dec 2020 17:40:43 +0000 (18:40 +0100)
.clang-format
.clang-format.headers

index 3ed176aeb7a24467752f4447b647df86dc38ae46..7137d8e008540705de31109dd8947dc31a94ba29 100644 (file)
@@ -11,6 +11,7 @@ BraceWrapping:
   AfterFunction:   false # should also be MultiLine, but not yet supported
   AfterExternBlock: false
   BeforeElse:      false
+  BeforeWhile:     false
   IndentBraces:    false
   SplitEmptyFunction: true
 AllowShortIfStatementsOnASingleLine: false
@@ -19,6 +20,7 @@ AlwaysBreakAfterReturnType: All
 Cpp11BracedListStyle: false
 ColumnLimit: 80
 AlignAfterOpenBracket: Align
+AlignConsecutiveBitFields: true
 AlignConsecutiveDeclarations: false
 AlignConsecutiveMacros: true
 AlignTrailingComments: true
@@ -62,6 +64,7 @@ IncludeCategories:
     Priority:        1
   - Regex:           '.*'
     Priority:        0
+IndentExternBlock: NoIndent
 KeepEmptyLinesAtTheStartOfBlocks: false
 MaxEmptyLinesToKeep: 1
 PenaltyBreakAssignment: 30
index a488e811f4db3daf07b385c3433325ce84fd25ea..b536276e7ce10e1bf5eaf4e78ce12f3f5ea31d10 100644 (file)
@@ -11,6 +11,7 @@ BraceWrapping:
   AfterFunction:   false # should also be MultiLine, but not yet supported
   AfterExternBlock: false
   BeforeElse:      false
+  BeforeWhile:     false
   IndentBraces:    false
   SplitEmptyFunction: true
 AllowShortIfStatementsOnASingleLine: false
@@ -19,6 +20,7 @@ AlwaysBreakAfterReturnType: All
 Cpp11BracedListStyle: false
 ColumnLimit: 80
 AlignAfterOpenBracket: Align
+AlignConsecutiveBitFields: true
 AlignConsecutiveDeclarations: true
 AlignConsecutiveMacros: true
 AlignTrailingComments: true
@@ -50,6 +52,7 @@ IncludeCategories:
     Priority:        1
   - Regex:           '".*"'
     Priority:        9
+IndentExternBlock: NoIndent
 KeepEmptyLinesAtTheStartOfBlocks: false
 MaxEmptyLinesToKeep: 1
 PenaltyBreakAssignment: 30