blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [file] [log] [blame]
Kuiying Wang3a044402019-02-19 15:00:11 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
Jonathan Domaneddf9602022-11-23 09:29:41 -08008AlignEscapedNewlines: Right
9AlignOperands: Align
Patrick Williamse7e197b2023-05-10 07:50:39 -050010AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Kuiying Wang3a044402019-02-19 15:00:11 +080013AllowAllParametersOfDeclarationOnNextLine: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080014AllowShortBlocksOnASingleLine: Empty
Kuiying Wang3a044402019-02-19 15:00:11 +080015AllowShortCaseLabelsOnASingleLine: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams608a3922023-10-20 11:18:57 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Kuiying Wang3a044402019-02-19 15:00:11 +080019AllowShortLoopsOnASingleLine: false
Kuiying Wang3a044402019-02-19 15:00:11 +080020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080022AlwaysBreakTemplateDeclarations: Yes
Kuiying Wang3a044402019-02-19 15:00:11 +080023BinPackArguments: true
24BinPackParameters: true
Patrick Williams608a3922023-10-20 11:18:57 -050025BitFieldColonSpacing: None
Kuiying Wang3a044402019-02-19 15:00:11 +080026BraceWrapping:
Jonathan Domaneddf9602022-11-23 09:29:41 -080027 AfterCaseLabel: true
Kuiying Wang3a044402019-02-19 15:00:11 +080028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams608a3922023-10-20 11:18:57 -050031 AfterExternBlock: true
Kuiying Wang3a044402019-02-19 15:00:11 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williams608a3922023-10-20 11:18:57 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Kuiying Wang3a044402019-02-19 15:00:11 +080041 IndentBraces: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williamse7e197b2023-05-10 07:50:39 -050045BreakAfterAttributes: Never
Kuiying Wang3a044402019-02-19 15:00:11 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
Jonathan Domaneddf9602022-11-23 09:29:41 -080050BreakInheritanceList: AfterColon
51BreakStringLiterals: false
Kuiying Wang3a044402019-02-19 15:00:11 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
Jonathan Domaneddf9602022-11-23 09:29:41 -080054CompactNamespaces: false
Kuiying Wang3a044402019-02-19 15:00:11 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080058DerivePointerAlignment: false
Kuiying Wang3a044402019-02-19 15:00:11 +080059DisableFormat: false
Kuiying Wang3a044402019-02-19 15:00:11 +080060FixNamespaceComments: true
Patrick Williams608a3922023-10-20 11:18:57 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Kuiying Wang3a044402019-02-19 15:00:11 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
Jonathan Domaneddf9602022-11-23 09:29:41 -080068 Priority: 7
Kuiying Wang3a044402019-02-19 15:00:11 +080069 - Regex: '^"config.h"'
70 Priority: -1
Jonathan Domaneddf9602022-11-23 09:29:41 -080071 - Regex: '^".*\.h"'
Kuiying Wang3a044402019-02-19 15:00:11 +080072 Priority: 1
Jonathan Domaneddf9602022-11-23 09:29:41 -080073 - Regex: '^".*\.hpp"'
Kuiying Wang3a044402019-02-19 15:00:11 +080074 Priority: 2
Jonathan Domaneddf9602022-11-23 09:29:41 -080075 - Regex: '^<.*\.h>'
Kuiying Wang3a044402019-02-19 15:00:11 +080076 Priority: 3
Jonathan Domaneddf9602022-11-23 09:29:41 -080077 - Regex: '^<.*\.hpp>'
Kuiying Wang3a044402019-02-19 15:00:11 +080078 Priority: 4
Jonathan Domaneddf9602022-11-23 09:29:41 -080079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Kuiying Wang3a044402019-02-19 15:00:11 +080083IndentCaseLabels: true
Patrick Williams608a3922023-10-20 11:18:57 -050084IndentExternBlock: NoIndent
Jonathan Domaneddf9602022-11-23 09:29:41 -080085IndentRequiresClause: true
Kuiying Wang3a044402019-02-19 15:00:11 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williamse7e197b2023-05-10 07:50:39 -050088InsertNewlineAtEOF: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080089KeepEmptyLinesAtTheStartOfBlocks: false
Patrick Williamse7e197b2023-05-10 07:50:39 -050090LambdaBodyIndentation: OuterScope
91LineEnding: LF
Kuiying Wang3a044402019-02-19 15:00:11 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams608a3922023-10-20 11:18:57 -050099PackConstructorInitializers: BinPack
Jonathan Domaneddf9602022-11-23 09:29:41 -0800100PenaltyBreakAssignment: 25
Kuiying Wang3a044402019-02-19 15:00:11 +0800101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Jonathan Domaneddf9602022-11-23 09:29:41 -0800107PenaltyIndentedWhitespace: 0
Patrick Williams608a3922023-10-20 11:18:57 -0500108PointerAlignment: Left
Jonathan Domaneddf9602022-11-23 09:29:41 -0800109QualifierAlignment: Left
110ReferenceAlignment: Left
Kuiying Wang3a044402019-02-19 15:00:11 +0800111ReflowComments: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800112RequiresClausePosition: OwnLine
Patrick Williamse7e197b2023-05-10 07:50:39 -0500113RequiresExpressionIndentation: Keyword
Patrick Williams608a3922023-10-20 11:18:57 -0500114SortIncludes: CaseSensitive
Jonathan Domaneddf9602022-11-23 09:29:41 -0800115SortUsingDeclarations: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800116SpaceAfterCStyleCast: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800117SpaceAfterTemplateKeyword: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800118SpaceBeforeAssignmentOperators: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800122SpaceBeforeParens: ControlStatements
Jonathan Domaneddf9602022-11-23 09:29:41 -0800123SpaceBeforeRangeBasedForLoopColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williams608a3922023-10-20 11:18:57 -0500126SpacesInAngles: Never
Kuiying Wang3a044402019-02-19 15:00:11 +0800127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800131Standard: Latest
Kuiying Wang3a044402019-02-19 15:00:11 +0800132TabWidth: 4
133UseTab: Never
134...
Jonathan Domaneddf9602022-11-23 09:29:41 -0800135