Skip to content

Commit 2221b6f

Browse files
committed
Synchronize .clang-format file with main ROOT repo
1 parent 05abafc commit 2221b6f

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.clang-format

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# BasedOnStyle: LLVM
22
AccessModifierOffset: -3
33
AlignAfterOpenBracket: Align
4-
AlignConsecutiveAssignments: false
4+
AlignConsecutiveAssignments: None
55
# This would be nice to have but seems to also (mis)align function parameters
6-
AlignConsecutiveDeclarations: false
7-
AlignEscapedNewlinesLeft: true
6+
AlignConsecutiveDeclarations: None
7+
AlignEscapedNewlines: Left
88
AlignOperands: true
99
AlignTrailingComments: true
1010
AllowAllParametersOfDeclarationOnNextLine: true
11-
AllowShortBlocksOnASingleLine: false
11+
AllowShortBlocksOnASingleLine: Never
1212
AllowShortCaseLabelsOnASingleLine: true
1313
AllowShortFunctionsOnASingleLine: Inline
1414
AllowShortIfStatementsOnASingleLine: false
@@ -17,12 +17,12 @@ AllowShortLoopsOnASingleLine: false
1717
# AlwaysBreakAfterDefinitionReturnType: None
1818
AlwaysBreakAfterReturnType: None
1919
AlwaysBreakBeforeMultilineStrings: false
20-
AlwaysBreakTemplateDeclarations: true
20+
AlwaysBreakTemplateDeclarations: Yes
2121
BinPackArguments: true
2222
BinPackParameters: true
2323
BraceWrapping:
2424
AfterClass: false
25-
AfterControlStatement: false
25+
AfterControlStatement: Never
2626
AfterEnum: false
2727
AfterFunction: true
2828
AfterNamespace: false
@@ -32,7 +32,7 @@ BraceWrapping:
3232
BeforeCatch: false
3333
BeforeElse: false
3434
IndentBraces: false
35-
BreakBeforeBinaryOperators: false
35+
BreakBeforeBinaryOperators: None
3636
BreakBeforeBraces: Custom
3737
BreakBeforeTernaryOperators: true
3838
BreakConstructorInitializersBeforeComma: false
@@ -46,19 +46,6 @@ DerivePointerAlignment: false
4646
DisableFormat: false
4747
ExperimentalAutoDetectBinPacking: false
4848
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
49-
IncludeCategories:
50-
- Regex: '^("|<)T'
51-
Priority: 4
52-
- Regex: '^("|<)ROOT/'
53-
Priority: 5
54-
- Regex: '^<.*\.h>'
55-
Priority: 1
56-
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
57-
Priority: 2
58-
- Regex: '^(<|"(gtest|isl|json)/)'
59-
Priority: 3
60-
- Regex: '.*'
61-
Priority: 6
6249
IndentCaseLabels: false
6350
IndentWidth: 3
6451
IndentWrappedFunctionNames: false
@@ -77,8 +64,8 @@ PenaltyBreakString: 1000
7764
PenaltyExcessCharacter: 1000000
7865
PenaltyReturnTypeOnItsOwnLine: 10
7966
PointerAlignment: Right
80-
ReflowComments: true
81-
SortIncludes: false
67+
ReflowComments: true
68+
SortIncludes: Never
8269
SpaceAfterCStyleCast: false
8370
SpaceBeforeAssignmentOperators: true
8471
# You want this : enable it if you have https://reviews.llvm.org/D32525
@@ -91,14 +78,16 @@ SpacesInContainerLiterals: true
9178
SpacesInCStyleCastParentheses: false
9279
SpacesInParentheses: false
9380
SpacesInSquareBrackets: false
94-
Standard: Cpp11
81+
Standard: c++11
9582
TabWidth: 3
9683
UseTab: Never
9784

9885
# Order alphabetically and by generality the included header files.
9986
IncludeCategories:
10087
- Regex: '^"[^/]+\"'
10188
Priority: 10
89+
- Regex: '^("|<)T'
90+
Priority: 12
10291
- Regex: '^"ROOT/'
10392
Priority: 15
10493
- Regex: '^"cling/'

0 commit comments

Comments
 (0)