blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [file] [log] [blame]
Kuiying Wang642f4372020-08-12 15:35:46 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Right
Patrick Williamsf19e2712023-05-10 07:51:20 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Kuiying Wang642f4372020-08-12 15:35:46 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williamsf19e2712023-05-10 07:51:20 -050014AllowShortBlocksOnASingleLine: Empty
Kuiying Wang642f4372020-08-12 15:35:46 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williamsf19e2712023-05-10 07:51:20 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams20de6de2023-10-20 11:19:48 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Kuiying Wang642f4372020-08-12 15:35:46 +080019AllowShortLoopsOnASingleLine: false
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: Yes
23BinPackArguments: true
24BinPackParameters: true
Patrick Williams20de6de2023-10-20 11:19:48 -050025BitFieldColonSpacing: None
Kuiying Wang642f4372020-08-12 15:35:46 +080026BraceWrapping:
27 AfterCaseLabel: true
28 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams20de6de2023-10-20 11:19:48 -050031 AfterExternBlock: true
Kuiying Wang642f4372020-08-12 15:35:46 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
Kuiying Wang642f4372020-08-12 15:35:46 +080037 BeforeCatch: true
38 BeforeElse: true
Patrick Williams20de6de2023-10-20 11:19:48 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Kuiying Wang642f4372020-08-12 15:35:46 +080041 IndentBraces: false
42 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williamsf19e2712023-05-10 07:51:20 -050045BreakAfterAttributes: Never
Kuiying Wang642f4372020-08-12 15:35:46 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
50BreakInheritanceList: AfterColon
George Liub9e362d2021-12-08 10:30:11 +080051BreakStringLiterals: false
Kuiying Wang642f4372020-08-12 15:35:46 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
54CompactNamespaces: false
Kuiying Wang642f4372020-08-12 15:35:46 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
Kuiying Wang642f4372020-08-12 15:35:46 +080059DisableFormat: false
Kuiying Wang642f4372020-08-12 15:35:46 +080060FixNamespaceComments: true
Patrick Williams20de6de2023-10-20 11:19:48 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Kuiying Wang642f4372020-08-12 15:35:46 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
68 Priority: 7
69 - Regex: '^"config.h"'
70 Priority: -1
71 - Regex: '^".*\.h"'
72 Priority: 1
73 - Regex: '^".*\.hpp"'
74 Priority: 2
75 - Regex: '^<.*\.h>'
76 Priority: 3
77 - Regex: '^<.*\.hpp>'
78 Priority: 4
79 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
83IndentCaseLabels: true
Patrick Williams20de6de2023-10-20 11:19:48 -050084IndentExternBlock: NoIndent
Patrick Williamsf19e2712023-05-10 07:51:20 -050085IndentRequiresClause: true
Kuiying Wang642f4372020-08-12 15:35:46 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williamsf19e2712023-05-10 07:51:20 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
Patrick Williamsea6a65f2024-08-16 15:19:44 -040090LambdaBodyIndentation: Signature
Patrick Williamsf19e2712023-05-10 07:51:20 -050091LineEnding: LF
Kuiying Wang642f4372020-08-12 15:35:46 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams20de6de2023-10-20 11:19:48 -050099PackConstructorInitializers: BinPack
Patrick Williamsf19e2712023-05-10 07:51:20 -0500100PenaltyBreakAssignment: 25
Patrick Williamsea6a65f2024-08-16 15:19:44 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Kuiying Wang642f4372020-08-12 15:35:46 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williamsea6a65f2024-08-16 15:19:44 -0400105PenaltyBreakTemplateDeclaration: 10
Kuiying Wang642f4372020-08-12 15:35:46 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsea6a65f2024-08-16 15:19:44 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams20de6de2023-10-20 11:19:48 -0500109PointerAlignment: Left
Patrick Williamsf19e2712023-05-10 07:51:20 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Kuiying Wang642f4372020-08-12 15:35:46 +0800112ReflowComments: true
Patrick Williamsf19e2712023-05-10 07:51:20 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williams20de6de2023-10-20 11:19:48 -0500115SortIncludes: CaseSensitive
Kuiying Wang642f4372020-08-12 15:35:46 +0800116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
118SpaceAfterTemplateKeyword: true
119SpaceBeforeAssignmentOperators: true
120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
123SpaceBeforeParens: ControlStatements
124SpaceBeforeRangeBasedForLoopColon: true
125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams20de6de2023-10-20 11:19:48 -0500127SpacesInAngles: Never
Kuiying Wang642f4372020-08-12 15:35:46 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
132Standard: Latest
133TabWidth: 4
Kuiying Wang642f4372020-08-12 15:35:46 +0800134UseTab: Never
135...
136