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