|
1 |
| ---- |
| 1 | +# |
| 2 | +# http://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 3 | +# |
2 | 4 | Language: Cpp
|
3 |
| -# BasedOnStyle: LLVM |
4 |
| -AccessModifierOffset: -2 |
| 5 | +AccessModifierOffset: -4 |
5 | 6 | AlignAfterOpenBracket: Align
|
6 |
| -AlignConsecutiveMacros: None |
7 |
| -AlignConsecutiveAssignments: None |
8 |
| -AlignConsecutiveBitFields: None |
9 |
| -AlignConsecutiveDeclarations: None |
10 |
| -AlignEscapedNewlines: Right |
11 |
| -AlignOperands: Align |
| 7 | +AlignConsecutiveAssignments: true |
| 8 | +AlignConsecutiveDeclarations: true |
| 9 | +AlignEscapedNewlines: DontAlign |
| 10 | +AlignOperands: true |
12 | 11 | AlignTrailingComments: true
|
13 |
| -AllowAllArgumentsOnNextLine: true |
14 |
| -AllowAllConstructorInitializersOnNextLine: true |
15 | 12 | AllowAllParametersOfDeclarationOnNextLine: true
|
16 |
| -AllowShortEnumsOnASingleLine: true |
17 |
| -AllowShortBlocksOnASingleLine: Never |
18 |
| -AllowShortCaseLabelsOnASingleLine: false |
| 13 | +AllowShortBlocksOnASingleLine: true |
| 14 | +AllowShortCaseLabelsOnASingleLine: true |
19 | 15 | AllowShortFunctionsOnASingleLine: All
|
20 |
| -AllowShortLambdasOnASingleLine: All |
21 |
| -AllowShortIfStatementsOnASingleLine: Never |
| 16 | +AllowShortIfStatementsOnASingleLine: false |
22 | 17 | AllowShortLoopsOnASingleLine: false
|
23 | 18 | AlwaysBreakAfterDefinitionReturnType: None
|
24 | 19 | AlwaysBreakAfterReturnType: None
|
25 | 20 | AlwaysBreakBeforeMultilineStrings: false
|
26 |
| -AlwaysBreakTemplateDeclarations: MultiLine |
27 |
| -AttributeMacros: |
28 |
| - - __capability |
| 21 | +AlwaysBreakTemplateDeclarations: false |
29 | 22 | BinPackArguments: true
|
30 |
| -BinPackParameters: true |
31 |
| -BraceWrapping: |
32 |
| - AfterCaseLabel: false |
33 |
| - AfterClass: false |
34 |
| - AfterControlStatement: Never |
| 23 | +BinPackParameters: false |
| 24 | +BraceWrapping: |
| 25 | + AfterClass: true |
| 26 | + AfterControlStatement: false |
35 | 27 | AfterEnum: false
|
36 |
| - AfterFunction: false |
| 28 | + AfterFunction: true |
37 | 29 | AfterNamespace: false
|
38 | 30 | AfterObjCDeclaration: false
|
39 |
| - AfterStruct: false |
| 31 | + AfterStruct: true |
40 | 32 | AfterUnion: false
|
41 | 33 | AfterExternBlock: false
|
42 | 34 | BeforeCatch: false
|
43 | 35 | BeforeElse: false
|
44 |
| - BeforeLambdaBody: false |
45 |
| - BeforeWhile: false |
46 | 36 | IndentBraces: false
|
47 |
| - SplitEmptyFunction: true |
48 |
| - SplitEmptyRecord: true |
49 |
| - SplitEmptyNamespace: true |
| 37 | + SplitEmptyFunction: false |
| 38 | + SplitEmptyRecord: false |
| 39 | + SplitEmptyNamespace: false |
50 | 40 | BreakBeforeBinaryOperators: None
|
51 |
| -BreakBeforeConceptDeclarations: true |
52 |
| -BreakBeforeBraces: Attach |
| 41 | +BreakBeforeBraces: Custom |
53 | 42 | BreakBeforeInheritanceComma: false
|
54 | 43 | BreakInheritanceList: BeforeColon
|
55 |
| -BreakBeforeTernaryOperators: true |
| 44 | +BreakBeforeTernaryOperators: false |
56 | 45 | BreakConstructorInitializersBeforeComma: false
|
57 |
| -BreakConstructorInitializers: BeforeColon |
| 46 | +BreakConstructorInitializers: BeforeComma |
58 | 47 | BreakAfterJavaFieldAnnotations: false
|
59 | 48 | BreakStringLiterals: true
|
60 |
| -ColumnLimit: 120 |
| 49 | +ColumnLimit: 140 |
61 | 50 | CommentPragmas: '^ IWYU pragma:'
|
62 |
| -CompactNamespaces: false |
63 |
| -ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 51 | +CompactNamespaces: true |
| 52 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
64 | 53 | ConstructorInitializerIndentWidth: 4
|
65 | 54 | ContinuationIndentWidth: 4
|
66 | 55 | Cpp11BracedListStyle: true
|
67 |
| -DeriveLineEnding: true |
68 | 56 | DerivePointerAlignment: false
|
69 | 57 | DisableFormat: false
|
70 |
| -EmptyLineBeforeAccessModifier: LogicalBlock |
71 | 58 | ExperimentalAutoDetectBinPacking: false
|
72 | 59 | FixNamespaceComments: true
|
73 |
| -ForEachMacros: |
| 60 | +ForEachMacros: |
| 61 | + - forever |
74 | 62 | - foreach
|
75 | 63 | - Q_FOREACH
|
76 | 64 | - BOOST_FOREACH
|
77 |
| -StatementAttributeLikeMacros: |
78 |
| - - Q_EMIT |
79 | 65 | IncludeBlocks: Preserve
|
80 |
| -IncludeCategories: |
81 |
| - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
82 |
| - Priority: 2 |
83 |
| - SortPriority: 0 |
84 |
| - CaseSensitive: false |
| 66 | +IncludeCategories: |
| 67 | + - Regex: '^<Q.*' |
| 68 | + Priority: 200 |
85 | 69 | - Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
86 | 70 | Priority: 3
|
87 |
| - SortPriority: 0 |
88 |
| - CaseSensitive: false |
89 | 71 | - Regex: '.*'
|
90 | 72 | Priority: 1
|
91 |
| - SortPriority: 0 |
92 |
| - CaseSensitive: false |
93 | 73 | IncludeIsMainRegex: '(Test)?$'
|
94 |
| -IncludeIsMainSourceRegex: '' |
95 | 74 | IndentCaseLabels: false
|
96 |
| -IndentCaseBlocks: false |
97 |
| -IndentGotoLabels: true |
98 | 75 | IndentPPDirectives: None
|
99 |
| -IndentExternBlock: AfterExternBlock |
100 |
| -IndentRequires: false |
101 |
| -IndentWidth: 2 |
| 76 | +IndentWidth: 4 |
102 | 77 | IndentWrappedFunctionNames: false
|
103 |
| -InsertTrailingCommas: None |
104 | 78 | JavaScriptQuotes: Leave
|
105 | 79 | JavaScriptWrapImports: true
|
106 |
| -KeepEmptyLinesAtTheStartOfBlocks: true |
| 80 | +#KeepLineBreaksForNonEmptyLines: false |
| 81 | +KeepEmptyLinesAtTheStartOfBlocks: false |
107 | 82 | MacroBlockBegin: ''
|
108 | 83 | MacroBlockEnd: ''
|
109 | 84 | MaxEmptyLinesToKeep: 1
|
110 | 85 | NamespaceIndentation: None
|
111 | 86 | ObjCBinPackProtocolList: Auto
|
112 |
| -ObjCBlockIndentWidth: 2 |
113 |
| -ObjCBreakBeforeNestedBlockParam: true |
| 87 | +ObjCBlockIndentWidth: 4 |
114 | 88 | ObjCSpaceAfterProperty: false
|
115 | 89 | ObjCSpaceBeforeProtocolList: true
|
116 |
| -PenaltyBreakAssignment: 2 |
117 |
| -PenaltyBreakBeforeFirstCallParameter: 19 |
118 |
| -PenaltyBreakComment: 300 |
119 |
| -PenaltyBreakFirstLessLess: 120 |
120 |
| -PenaltyBreakString: 1000 |
| 90 | +PenaltyBreakAssignment: 150 |
| 91 | +PenaltyBreakBeforeFirstCallParameter: 300 |
| 92 | +PenaltyBreakComment: 500 |
| 93 | +PenaltyBreakFirstLessLess: 400 |
| 94 | +PenaltyBreakString: 600 |
121 | 95 | PenaltyBreakTemplateDeclaration: 10
|
122 |
| -PenaltyExcessCharacter: 1000000 |
123 |
| -PenaltyReturnTypeOnItsOwnLine: 60 |
124 |
| -PenaltyIndentedWhitespace: 0 |
| 96 | +PenaltyExcessCharacter: 50 |
| 97 | +PenaltyReturnTypeOnItsOwnLine: 300 |
125 | 98 | PointerAlignment: Right
|
126 | 99 | ReflowComments: true
|
127 |
| -SortIncludes: true |
128 |
| -SortJavaStaticImport: Before |
129 |
| -SortUsingDeclarations: true |
130 |
| -SpaceAfterCStyleCast: false |
131 |
| -SpaceAfterLogicalNot: false |
132 |
| -SpaceAfterTemplateKeyword: true |
| 100 | +SortIncludes: false |
| 101 | +SortUsingDeclarations: false |
| 102 | +SpaceAfterCStyleCast: true |
| 103 | +SpaceAfterTemplateKeyword: false |
133 | 104 | SpaceBeforeAssignmentOperators: true
|
134 |
| -SpaceBeforeCaseColon: false |
135 | 105 | SpaceBeforeCpp11BracedList: false
|
136 | 106 | SpaceBeforeCtorInitializerColon: true
|
137 | 107 | SpaceBeforeInheritanceColon: true
|
138 | 108 | SpaceBeforeParens: ControlStatements
|
139 |
| -SpaceAroundPointerQualifiers: Default |
140 | 109 | SpaceBeforeRangeBasedForLoopColon: true
|
141 |
| -SpaceInEmptyBlock: false |
142 | 110 | SpaceInEmptyParentheses: false
|
143 | 111 | SpacesBeforeTrailingComments: 1
|
144 | 112 | SpacesInAngles: false
|
145 |
| -SpacesInConditionalStatement: false |
146 |
| -SpacesInContainerLiterals: true |
| 113 | +SpacesInContainerLiterals: false |
147 | 114 | SpacesInCStyleCastParentheses: false
|
148 | 115 | SpacesInParentheses: false
|
149 | 116 | SpacesInSquareBrackets: false
|
150 |
| -SpaceBeforeSquareBrackets: false |
151 |
| -BitFieldColonSpacing: Both |
152 |
| -Standard: Latest |
153 |
| -StatementMacros: |
154 |
| - - Q_UNUSED |
155 |
| - - QT_REQUIRE_VERSION |
| 117 | +Standard: Cpp11 |
156 | 118 | TabWidth: 4
|
157 |
| -UseCRLF: false |
158 | 119 | UseTab: Never
|
159 |
| -WhitespaceSensitiveMacros: |
160 |
| - - STRINGIZE |
161 |
| - - PP_STRINGIZE |
162 |
| - - BOOST_PP_STRINGIZE |
163 |
| - - NS_SWIFT_NAME |
164 |
| - - CF_SWIFT_NAME |
165 |
| -... |
166 | 120 |
|
0 commit comments