]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add more tweaks to .clang-format style for experimenting
authorOndřej Surý <ondrej@sury.org>
Wed, 18 Apr 2018 18:14:57 +0000 (11:14 -0700)
committerOndřej Surý <ondrej@sury.org>
Wed, 18 Apr 2018 18:14:57 +0000 (11:14 -0700)
.clang-format

index 8f213fec2350d9df6602fdffc8a6152dc7f5ab6e..3005bd4a91c405fb3913e87666e09ab57858e367 100644 (file)
@@ -2,18 +2,36 @@
 BasedOnStyle:          LLVM
 BreakBeforeBraces:     Linux
 IndentWidth:           8
+IncludeBlocks:         Regroup
+IncludeCategories:
+  - Regex:     '^"'
+    Priority:  5
+  - Regex:     '^<(dns|ns|irs|isccc|iscfg)/'
+    Priority:   4
+  - Regex:     '^<isc/'
+    Priority:  3
+  - Regex:     '.*'
+    Priority:  2
+  - Regex:     '^<config.h>'
+    Priority:   1
+KeepEmptyLinesAtTheStartOfBlocks: false
+MaxEmptyLinesToKeep: 1
+PenaltyBreakBeforeFirstCallParameter: 100
 ContinuationIndentWidth: 8
+AlwaysBreakAfterReturnType: TopLevel
 Standard:              Cpp11
 TabWidth:              8
-UseTab:                        ForIndentation
+UseTab:                        ForContinuationAndIndentation
 ColumnLimit:           80
 IndentCaseLabels:      false
-AllowShortCaseLabelsOnASingleLine:     true
+AllowShortCaseLabelsOnASingleLine:     false
 AlignTrailingComments: true
 AlignOperands:         true
 AlignConsecutiveAssignments:   true
 AlignConsecutiveDeclarations:  true
 AllowAllParametersOfDeclarationOnNextLine: false
 AlwaysBreakAfterDefinitionReturnType: TopLevel
+AlignAfterOpenBracket: Align
 CommentPragmas: 'Copyright'
+BreakBeforeTernaryOperators: false
 ...