1
+ # using [clang-formt-12 options](https://releases.llvm.org/12.0.0/tools/clang/docs/ClangFormatStyleOptions.html)
1
2
RawStringFormats :
2
- - Language : Cpp
3
+ - Language : Cpp
3
4
Delimiters :
4
5
- c
5
6
- C
@@ -13,35 +14,23 @@ RawStringFormats:
13
14
- h
14
15
- hpp
15
16
CanonicalDelimiter : ' '
16
- BasedOnStyle : google
17
- - Language : TextProto
18
- Delimiters :
19
- - pb
20
- - PB
21
- - proto
22
- - PROTO
23
- EnclosingFunctions :
24
- - EqualsProto
25
- - EquivToProto
26
- - PARSE_PARTIAL_TEXT_PROTO
27
- - PARSE_TEST_PROTO
28
- - PARSE_TEXT_PROTO
29
- - ParseTextOrDie
30
- - ParseTextProtoOrDie
31
- CanonicalDelimiter : ' '
32
- BasedOnStyle : google
17
+ BasedOnStyle : Mozilla
33
18
34
19
Language : Cpp
35
20
BasedOnStyle : Mozilla
21
+ # 6.1
36
22
IndentWidth : 4
23
+ ContinuationIndentWidth : 4
24
+ # 6.2
25
+ TabWidth : 4
26
+ UseTab : Never
27
+ # 6.3
28
+ ColumnLimit : 80
29
+ # 6.9
37
30
AlignAfterOpenBracket : Align
38
- AllowAllArgumentsOnNextLine : false
39
- AlignConsecutiveMacros : true
40
- AllowShortBlocksOnASingleLine : true
41
- AlwaysBreakAfterReturnType : All
42
31
BinPackArguments : true
43
- BinPackParameters : false
44
- BreakBeforeBinaryOperators : NonAssignment
32
+ BinPackParameters : true
33
+ # 6.10
45
34
BreakBeforeBraces : Custom
46
35
BraceWrapping :
47
36
AfterCaseLabel : true
@@ -60,104 +49,13 @@ BraceWrapping:
60
49
SplitEmptyFunction : true
61
50
SplitEmptyRecord : false
62
51
SplitEmptyNamespace : true
63
- ColumnLimit : 79
64
- ContinuationIndentWidth : 2
65
- DerivePointerAlignment : false
66
- IncludeBlocks : Regroup
67
- IncludeCategories :
68
- - Regex : ' ^"(llvm|llvm-c|clang|clang-c)/'
69
- Priority : 2
70
- - Regex : ' ^(<|"(gtest|gmock|isl|json)/)'
71
- Priority : 1
72
- - Regex : " .*"
73
- Priority : 3
74
- IndentPPDirectives : None
75
- KeepEmptyLinesAtTheStartOfBlocks : false
76
- NamespaceIndentation : None
77
- PointerAlignment : Right
78
- ReflowComments : false
79
- SortIncludes : false
80
- Standard : Auto
81
- StatementMacros :
82
- - Q_UNUSED
83
- - QT_REQUIRE_VERSION
84
-
85
- # AccessModifierOffset: -2
86
- # AlignConsecutiveAssignments: false
87
- # AlignConsecutiveDeclarations: false
88
- # AlignEscapedNewlines: Right
89
- # AlignOperands: true
90
- # AlignTrailingComments: true
91
- # AllowAllConstructorInitializersOnNextLine: true
92
- # AllowAllParametersOfDeclarationOnNextLine: false
93
- # AllowShortCaseLabelsOnASingleLine: false
94
- # AllowShortFunctionsOnASingleLine: Inline
95
- # AllowShortLambdasOnASingleLine: All
96
- # AllowShortIfStatementsOnASingleLine: Never
97
- # AllowShortLoopsOnASingleLine: false
98
- # AlwaysBreakAfterDefinitionReturnType: TopLevel
99
- # AlwaysBreakAfterReturnType: TopLevel
100
- # AlwaysBreakBeforeMultilineStrings: false
101
- # AlwaysBreakTemplateDeclarations: Yes
102
- # BreakBeforeInheritanceComma: false
103
- # BreakInheritanceList: BeforeComma
104
- # BreakBeforeTernaryOperators: true
105
- # BreakConstructorInitializersBeforeComma: false
106
- # BreakConstructorInitializers: BeforeComma
107
- # BreakAfterJavaFieldAnnotations: false
108
- # BreakStringLiterals: true
109
- # CommentPragmas: '^ IWYU pragma:'
110
- # CompactNamespaces: false
111
- # ConstructorInitializerAllOnOneLineOrOnePerLine: false
112
- # ConstructorInitializerIndentWidth: 2
113
- # Cpp11BracedListStyle: false
114
- # DisableFormat: false
115
- # ExperimentalAutoDetectBinPacking: false
116
- # FixNamespaceComments: false
117
- # ForEachMacros:
118
- # - foreach
119
- # - Q_FOREACH
120
- # - BOOST_FOREACH
121
- # IncludeIsMainRegex: '(Test)?$'
122
- # IndentCaseLabels: true
123
- # IndentWrappedFunctionNames: false
124
- # JavaScriptQuotes: Leave
125
- # JavaScriptWrapImports: true
126
- # KeepEmptyLinesAtTheStartOfBlocks: true
127
- # MacroBlockBegin: ''
128
- # MacroBlockEnd: ''
129
- # MaxEmptyLinesToKeep: 1
130
- # ObjCBinPackProtocolList: Auto
131
- # ObjCBlockIndentWidth: 2
132
- # ObjCSpaceAfterProperty: true
133
- # ObjCSpaceBeforeProtocolList: false
134
- # PenaltyBreakAssignment: 2
135
- # PenaltyBreakBeforeFirstCallParameter: 19
136
- # PenaltyBreakComment: 300
137
- # PenaltyBreakFirstLessLess: 120
138
- # PenaltyBreakString: 1000
139
- # PenaltyBreakTemplateDeclaration: 10
140
- # PenaltyExcessCharacter: 1000000
141
- # PenaltyReturnTypeOnItsOwnLine: 200
142
- # SortIncludes: true
143
- # SortUsingDeclarations: true
144
- # SpaceAfterCStyleCast: false
145
- # SpaceAfterLogicalNot: false
146
- # SpaceAfterTemplateKeyword: false
147
- # SpaceBeforeAssignmentOperators: true
148
- # SpaceBeforeCpp11BracedList: false
149
- # SpaceBeforeCtorInitializerColon: true
150
- # SpaceBeforeInheritanceColon: true
151
- # SpaceBeforeParens: ControlStatements
152
- # SpaceBeforeRangeBasedForLoopColon: true
153
- # SpaceInEmptyParentheses: false
154
- # SpacesBeforeTrailingComments: 1
155
- # SpacesInAngles: false
156
- # SpacesInContainerLiterals: true
157
- # SpacesInCStyleCastParentheses: false
158
- # SpacesInParentheses: false
159
- # SpacesInSquareBrackets: false
160
- # TabWidth: 4
161
- # UseTab: Never
162
- # ...
52
+ # 6.27
53
+ BreakBeforeBinaryOperators : NonAssignment
163
54
55
+ # additional
56
+ AlignEscapedNewlines : Left
57
+ AllowAllParametersOfDeclarationOnNextLine : false
58
+ AllowAllArgumentsOnNextLine : false
59
+ PointerAlignment : Right
60
+ SpaceAroundPointerQualifiers : After
61
+ SortIncludes : false
0 commit comments