blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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 Williams9c2e8712024-08-16 15:20:36 -040090LambdaBodyIndentation: Signature
Patrick Williamse7e197b2023-05-10 07:50:39 -050091LineEnding: 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
Patrick Williams9c2e8712024-08-16 15:20:36 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Kuiying Wang3a044402019-02-19 15:00:11 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williams9c2e8712024-08-16 15:20:36 -0400105PenaltyBreakTemplateDeclaration: 10
Kuiying Wang3a044402019-02-19 15:00:11 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams9c2e8712024-08-16 15:20:36 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams608a3922023-10-20 11:18:57 -0500109PointerAlignment: Left
Jonathan Domaneddf9602022-11-23 09:29:41 -0800110QualifierAlignment: Left
111ReferenceAlignment: Left
Kuiying Wang3a044402019-02-19 15:00:11 +0800112ReflowComments: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800113RequiresClausePosition: OwnLine
Patrick Williamse7e197b2023-05-10 07:50:39 -0500114RequiresExpressionIndentation: Keyword
Patrick Williams608a3922023-10-20 11:18:57 -0500115SortIncludes: CaseSensitive
Jonathan Domaneddf9602022-11-23 09:29:41 -0800116SortUsingDeclarations: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800117SpaceAfterCStyleCast: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800118SpaceAfterTemplateKeyword: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800119SpaceBeforeAssignmentOperators: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800123SpaceBeforeParens: ControlStatements
Jonathan Domaneddf9602022-11-23 09:29:41 -0800124SpaceBeforeRangeBasedForLoopColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams608a3922023-10-20 11:18:57 -0500127SpacesInAngles: Never
Kuiying Wang3a044402019-02-19 15:00:11 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800132Standard: Latest
Kuiying Wang3a044402019-02-19 15:00:11 +0800133TabWidth: 4
134UseTab: Never
135...
Jonathan Domaneddf9602022-11-23 09:29:41 -0800136