Skip to content

Commit 1b2f0e0

Browse files
committed
Add missing "default" config to .clang-format from -dump-file option
1 parent 0bbe1a6 commit 1b2f0e0

File tree

1 file changed

+75
-6
lines changed

1 file changed

+75
-6
lines changed

.clang-format

Lines changed: 75 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,134 @@
22
Language: Cpp
33
AccessModifierOffset: -4
44
AlignAfterOpenBracket: Align
5+
AlignConsecutiveMacros: true
56
AlignConsecutiveAssignments: true
67
AlignConsecutiveDeclarations: true
7-
AlignConsecutiveMacros: true
88
AlignEscapedNewlines: Left
99
AlignOperands: true
1010
AlignTrailingComments: true
11+
AllowAllArgumentsOnNextLine: true
12+
AllowAllConstructorInitializersOnNextLine: true
1113
AllowAllParametersOfDeclarationOnNextLine: true
1214
AllowShortBlocksOnASingleLine: Empty
1315
AllowShortCaseLabelsOnASingleLine: false
1416
AllowShortFunctionsOnASingleLine: Empty
15-
AllowShortIfStatementsOnASingleLine: false
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortIfStatementsOnASingleLine: Never
1619
AllowShortLoopsOnASingleLine: false
20+
AlwaysBreakAfterDefinitionReturnType: None
1721
AlwaysBreakAfterReturnType: None
1822
AlwaysBreakBeforeMultilineStrings: false
23+
AlwaysBreakTemplateDeclarations: MultiLine
1924
BinPackArguments: true
2025
BinPackParameters: true
26+
BraceWrapping:
27+
AfterCaseLabel: true
28+
AfterClass: true
29+
AfterControlStatement: true
30+
AfterEnum: true
31+
AfterFunction: true
32+
AfterNamespace: true
33+
AfterObjCDeclaration: true
34+
AfterStruct: true
35+
AfterUnion: true
36+
AfterExternBlock: true
37+
BeforeCatch: true
38+
BeforeElse: true
39+
IndentBraces: false
40+
SplitEmptyFunction: true
41+
SplitEmptyRecord: true
42+
SplitEmptyNamespace: true
2143
BreakBeforeBinaryOperators: None
2244
BreakBeforeBraces: Allman
45+
BreakBeforeInheritanceComma: false
46+
BreakInheritanceList: BeforeColon
2347
BreakBeforeTernaryOperators: true
48+
BreakConstructorInitializersBeforeComma: false
49+
BreakConstructorInitializers: BeforeColon
50+
BreakAfterJavaFieldAnnotations: false
2451
BreakStringLiterals: true
2552
ColumnLimit: 120
2653
CommentPragmas: ''
54+
CompactNamespaces: false
55+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
56+
ConstructorInitializerIndentWidth: 4
2757
ContinuationIndentWidth: 4
2858
Cpp11BracedListStyle: true
59+
DeriveLineEnding: true
2960
DerivePointerAlignment: false
3061
DisableFormat: false
3162
ExperimentalAutoDetectBinPacking: false
32-
ForEachMacros: []
63+
FixNamespaceComments: true
64+
ForEachMacros:
65+
- foreach
66+
- Q_FOREACH
67+
- BOOST_FOREACH
3368
IncludeBlocks: Preserve
34-
IncludeCategories: []
69+
IncludeCategories:
70+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71+
Priority: 2
72+
SortPriority: 0
73+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
74+
Priority: 3
75+
SortPriority: 0
76+
- Regex: '.*'
77+
Priority: 1
78+
SortPriority: 0
3579
IncludeIsMainRegex: '$'
80+
IncludeIsMainSourceRegex: ''
3681
IndentCaseLabels: true
82+
IndentGotoLabels: true
3783
IndentPPDirectives: None
3884
IndentWidth: 4
85+
IndentWrappedFunctionNames: false
86+
JavaScriptQuotes: Leave
87+
JavaScriptWrapImports: true
3988
KeepEmptyLinesAtTheStartOfBlocks: true
4089
MacroBlockBegin: ''
4190
MacroBlockEnd: ''
4291
MaxEmptyLinesToKeep: 1
92+
NamespaceIndentation: None
93+
ObjCBinPackProtocolList: Auto
94+
ObjCBlockIndentWidth: 2
95+
ObjCSpaceAfterProperty: false
96+
ObjCSpaceBeforeProtocolList: true
4397
PenaltyBreakAssignment: 2
4498
PenaltyBreakBeforeFirstCallParameter: 19
4599
PenaltyBreakComment: 300
46100
PenaltyBreakFirstLessLess: 120
47101
PenaltyBreakString: 1000
102+
PenaltyBreakTemplateDeclaration: 10
48103
PenaltyExcessCharacter: 1000000
49104
PenaltyReturnTypeOnItsOwnLine: 60
50105
PointerAlignment: Right
51106
ReflowComments: true
52107
SortIncludes: false
108+
SortUsingDeclarations: true
53109
SpaceAfterCStyleCast: false
110+
SpaceAfterLogicalNot: false
111+
SpaceAfterTemplateKeyword: true
54112
SpaceBeforeAssignmentOperators: true
113+
SpaceBeforeCpp11BracedList: true
114+
SpaceBeforeCtorInitializerColon: true
115+
SpaceBeforeInheritanceColon: true
55116
SpaceBeforeParens: ControlStatements
117+
SpaceBeforeRangeBasedForLoopColon: true
118+
SpaceInEmptyBlock: false
56119
SpaceInEmptyParentheses: false
57-
SpaceBeforeCpp11BracedList: true
58120
SpacesBeforeTrailingComments: 1
121+
SpacesInAngles: false
122+
SpacesInConditionalStatement: false
123+
SpacesInContainerLiterals: true
59124
SpacesInCStyleCastParentheses: false
60125
SpacesInParentheses: false
61126
SpacesInSquareBrackets: false
127+
SpaceBeforeSquareBrackets: false
62128
Standard: c++11
129+
StatementMacros:
130+
- Q_UNUSED
131+
- QT_REQUIRE_VERSION
63132
TabWidth: 8
133+
UseCRLF: false
64134
UseTab: Never
65135
...
66-

0 commit comments

Comments
 (0)