|
1 | 1 | ---
|
2 |
| -Language: Cpp |
3 |
| -# BasedOnStyle: WebKit |
4 |
| -AccessModifierOffset: -4 |
5 |
| -AlignAfterOpenBracket: DontAlign |
| 2 | +Language: Cpp |
| 3 | +# BasedOnStyle: Chromium |
| 4 | +AccessModifierOffset: -2 |
| 5 | +AlignAfterOpenBracket: Align |
| 6 | +AlignConsecutiveMacros: false |
6 | 7 | AlignConsecutiveAssignments: false
|
| 8 | +AlignConsecutiveBitFields: false |
7 | 9 | AlignConsecutiveDeclarations: false
|
8 |
| -AlignEscapedNewlines: Right |
9 |
| -AlignOperands: false |
| 10 | +AlignEscapedNewlines: DontAlign |
| 11 | +AlignOperands: DontAlign |
10 | 12 | AlignTrailingComments: false
|
| 13 | +AllowAllArgumentsOnNextLine: true |
| 14 | +AllowAllConstructorInitializersOnNextLine: false |
11 | 15 | AllowAllParametersOfDeclarationOnNextLine: true
|
12 |
| -AllowShortBlocksOnASingleLine: false |
| 16 | +AllowShortEnumsOnASingleLine: false |
| 17 | +AllowShortBlocksOnASingleLine: Empty |
13 | 18 | AllowShortCaseLabelsOnASingleLine: false
|
14 |
| -AllowShortFunctionsOnASingleLine: All |
15 |
| -AllowShortIfStatementsOnASingleLine: false |
| 19 | +AllowShortFunctionsOnASingleLine: Inline |
| 20 | +AllowShortLambdasOnASingleLine: All |
| 21 | +AllowShortIfStatementsOnASingleLine: Never |
16 | 22 | AllowShortLoopsOnASingleLine: false
|
17 | 23 | AlwaysBreakAfterDefinitionReturnType: None
|
18 | 24 | AlwaysBreakAfterReturnType: None
|
19 |
| -AlwaysBreakBeforeMultilineStrings: false |
20 |
| -AlwaysBreakTemplateDeclarations: MultiLine |
21 |
| -BinPackArguments: true |
22 |
| -BinPackParameters: true |
| 25 | +AlwaysBreakBeforeMultilineStrings: true |
| 26 | +AlwaysBreakTemplateDeclarations: Yes |
| 27 | +BinPackArguments: false |
| 28 | +BinPackParameters: false |
23 | 29 | BraceWrapping:
|
24 |
| - AfterClass: false |
25 |
| - AfterControlStatement: false |
26 |
| - AfterEnum: false |
27 |
| - AfterFunction: true |
28 |
| - AfterNamespace: false |
| 30 | + AfterCaseLabel: false |
| 31 | + AfterClass: true |
| 32 | + AfterControlStatement: MultiLine |
| 33 | + AfterEnum: true |
| 34 | + AfterFunction: true |
| 35 | + AfterNamespace: true |
29 | 36 | AfterObjCDeclaration: false
|
30 |
| - AfterStruct: false |
31 |
| - AfterUnion: false |
32 |
| - AfterExternBlock: false |
33 |
| - BeforeCatch: false |
34 |
| - BeforeElse: false |
35 |
| - IndentBraces: false |
| 37 | + AfterStruct: true |
| 38 | + AfterUnion: true |
| 39 | + AfterExternBlock: true |
| 40 | + BeforeCatch: false |
| 41 | + BeforeElse: false |
| 42 | + BeforeLambdaBody: true |
| 43 | + BeforeWhile: false |
| 44 | + IndentBraces: false |
36 | 45 | SplitEmptyFunction: true
|
37 | 46 | SplitEmptyRecord: true
|
38 | 47 | SplitEmptyNamespace: true
|
39 |
| -BreakBeforeBinaryOperators: All |
40 |
| -BreakBeforeBraces: WebKit |
41 |
| -BreakBeforeInheritanceComma: false |
42 |
| -BreakInheritanceList: BeforeColon |
| 48 | +BreakBeforeBinaryOperators: NonAssignment |
| 49 | +BreakBeforeBraces: Custom |
| 50 | +# BreakBeforeInheritanceComma: true |
| 51 | +BreakInheritanceList: BeforeComma |
43 | 52 | BreakBeforeTernaryOperators: true
|
44 |
| -BreakConstructorInitializersBeforeComma: false |
| 53 | +BreakConstructorInitializersBeforeComma: true |
45 | 54 | BreakConstructorInitializers: BeforeComma
|
46 |
| -BreakAfterJavaFieldAnnotations: false |
| 55 | +BreakAfterJavaFieldAnnotations: true |
47 | 56 | BreakStringLiterals: true
|
48 |
| -ColumnLimit: 0 |
49 |
| -CommentPragmas: '^ IWYU pragma:' |
| 57 | +ColumnLimit: 80 |
| 58 | +CommentPragmas: '^ IWYU pragma:' |
50 | 59 | CompactNamespaces: false
|
51 | 60 | ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
52 | 61 | ConstructorInitializerIndentWidth: 4
|
53 | 62 | ContinuationIndentWidth: 4
|
54 |
| -Cpp11BracedListStyle: false |
| 63 | +Cpp11BracedListStyle: true |
| 64 | +DeriveLineEnding: false |
55 | 65 | DerivePointerAlignment: false
|
56 |
| -DisableFormat: false |
| 66 | +DisableFormat: false |
57 | 67 | ExperimentalAutoDetectBinPacking: false
|
58 |
| -FixNamespaceComments: false |
| 68 | +FixNamespaceComments: true |
59 | 69 | ForEachMacros:
|
60 | 70 | - foreach
|
61 | 71 | - Q_FOREACH
|
62 | 72 | - BOOST_FOREACH
|
63 |
| -IncludeBlocks: Preserve |
| 73 | +IncludeBlocks: Regroup |
64 | 74 | IncludeCategories:
|
65 |
| - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
66 |
| - Priority: 2 |
67 |
| - - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
68 |
| - Priority: 3 |
69 |
| - - Regex: '.*' |
70 |
| - Priority: 1 |
71 |
| -IncludeIsMainRegex: '(Test)?$' |
72 |
| -IndentCaseLabels: false |
73 |
| -IndentPPDirectives: None |
74 |
| -IndentWidth: 4 |
| 75 | + # Standard library headers come before anything else |
| 76 | + - Regex: '^<[a-z_]+>' |
| 77 | + Priority: -1 |
| 78 | + - Regex: '^<.+\.h(pp)?>' |
| 79 | + Priority: 1 |
| 80 | + - Regex: '^<.*' |
| 81 | + Priority: 2 |
| 82 | + - Regex: '.*' |
| 83 | + Priority: 3 |
| 84 | +IncludeIsMainRegex: '' |
| 85 | +IncludeIsMainSourceRegex: '' |
| 86 | +IndentCaseLabels: true |
| 87 | +IndentCaseBlocks: false |
| 88 | +IndentGotoLabels: true |
| 89 | +IndentPPDirectives: AfterHash |
| 90 | +IndentExternBlock: NoIndent |
| 91 | +IndentWidth: 2 |
75 | 92 | IndentWrappedFunctionNames: false
|
76 |
| -JavaScriptQuotes: Leave |
| 93 | +InsertTrailingCommas: Wrapped |
| 94 | +JavaScriptQuotes: Double |
77 | 95 | JavaScriptWrapImports: true
|
78 |
| -KeepEmptyLinesAtTheStartOfBlocks: true |
| 96 | +KeepEmptyLinesAtTheStartOfBlocks: false |
79 | 97 | MacroBlockBegin: ''
|
80 |
| -MacroBlockEnd: '' |
| 98 | +MacroBlockEnd: '' |
81 | 99 | MaxEmptyLinesToKeep: 1
|
82 |
| -NamespaceIndentation: Inner |
83 |
| -ObjCBinPackProtocolList: Auto |
84 |
| -ObjCBlockIndentWidth: 4 |
85 |
| -ObjCSpaceAfterProperty: true |
| 100 | +NamespaceIndentation: None |
| 101 | +ObjCBinPackProtocolList: Never |
| 102 | +ObjCBlockIndentWidth: 2 |
| 103 | +ObjCBreakBeforeNestedBlockParam: true |
| 104 | +ObjCSpaceAfterProperty: false |
86 | 105 | ObjCSpaceBeforeProtocolList: true
|
87 | 106 | PenaltyBreakAssignment: 2
|
88 |
| -PenaltyBreakBeforeFirstCallParameter: 19 |
| 107 | +PenaltyBreakBeforeFirstCallParameter: 1 |
89 | 108 | PenaltyBreakComment: 300
|
90 | 109 | PenaltyBreakFirstLessLess: 120
|
91 | 110 | PenaltyBreakString: 1000
|
92 | 111 | PenaltyBreakTemplateDeclaration: 10
|
93 | 112 | PenaltyExcessCharacter: 1000000
|
94 |
| -PenaltyReturnTypeOnItsOwnLine: 60 |
| 113 | +PenaltyReturnTypeOnItsOwnLine: 200 |
95 | 114 | PointerAlignment: Left
|
96 |
| -ReflowComments: true |
97 |
| -SortIncludes: true |
| 115 | +RawStringFormats: |
| 116 | + - Language: Cpp |
| 117 | + Delimiters: |
| 118 | + - cc |
| 119 | + - CC |
| 120 | + - cpp |
| 121 | + - Cpp |
| 122 | + - CPP |
| 123 | + - 'c++' |
| 124 | + - 'C++' |
| 125 | + CanonicalDelimiter: '' |
| 126 | + BasedOnStyle: google |
| 127 | + - Language: TextProto |
| 128 | + Delimiters: |
| 129 | + - pb |
| 130 | + - PB |
| 131 | + - proto |
| 132 | + - PROTO |
| 133 | + EnclosingFunctions: |
| 134 | + - EqualsProto |
| 135 | + - EquivToProto |
| 136 | + - PARSE_PARTIAL_TEXT_PROTO |
| 137 | + - PARSE_TEST_PROTO |
| 138 | + - PARSE_TEXT_PROTO |
| 139 | + - ParseTextOrDie |
| 140 | + - ParseTextProtoOrDie |
| 141 | + - ParseTestProto |
| 142 | + - ParsePartialTestProto |
| 143 | + CanonicalDelimiter: '' |
| 144 | + BasedOnStyle: google |
| 145 | +ReflowComments: true |
| 146 | +SortIncludes: true |
98 | 147 | SortUsingDeclarations: true
|
99 | 148 | SpaceAfterCStyleCast: false
|
100 |
| -SpaceAfterTemplateKeyword: true |
| 149 | +SpaceAfterLogicalNot: false |
| 150 | +SpaceAfterTemplateKeyword: false |
101 | 151 | SpaceBeforeAssignmentOperators: true
|
102 | 152 | SpaceBeforeCpp11BracedList: true
|
103 | 153 | SpaceBeforeCtorInitializerColon: true
|
104 | 154 | SpaceBeforeInheritanceColon: true
|
105 |
| -SpaceBeforeParens: ControlStatements |
| 155 | +SpaceBeforeParens: ControlStatementsExceptForEachMacros |
106 | 156 | SpaceBeforeRangeBasedForLoopColon: true
|
| 157 | +SpaceInEmptyBlock: false |
107 | 158 | SpaceInEmptyParentheses: false
|
108 |
| -SpacesBeforeTrailingComments: 1 |
109 |
| -SpacesInAngles: false |
110 |
| -SpacesInContainerLiterals: true |
| 159 | +SpacesBeforeTrailingComments: 2 |
| 160 | +SpacesInAngles: false |
| 161 | +SpacesInConditionalStatement: false |
| 162 | +SpacesInContainerLiterals: false |
111 | 163 | SpacesInCStyleCastParentheses: false
|
112 | 164 | SpacesInParentheses: false
|
113 | 165 | SpacesInSquareBrackets: false
|
114 |
| -Standard: Cpp11 |
| 166 | +SpaceBeforeSquareBrackets: false |
| 167 | +Standard: Auto |
115 | 168 | StatementMacros:
|
116 | 169 | - Q_UNUSED
|
117 | 170 | - QT_REQUIRE_VERSION
|
118 |
| -TabWidth: 8 |
119 |
| -UseTab: Never |
| 171 | +TabWidth: 8 |
| 172 | +UseCRLF: false |
| 173 | +UseTab: Never |
| 174 | +WhitespaceSensitiveMacros: |
| 175 | + - STRINGIZE |
| 176 | + - PP_STRINGIZE |
| 177 | + - BOOST_PP_STRINGIZE |
120 | 178 | ...
|
121 |
| - |
|
0 commit comments