blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [file] [log] [blame]
Jia, Chunhuia835eaa2018-09-05 09:00:41 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
James Feistfcd2d3a2020-05-28 10:38:15 -07008AlignEscapedNewlines: Right
Patrick Williamsb37abfb2023-05-10 07:50:33 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050014AllowShortBlocksOnASingleLine: Empty
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams87381412023-10-20 11:18:48 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080019AllowShortLoopsOnASingleLine: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
James Feistfcd2d3a2020-05-28 10:38:15 -070022AlwaysBreakTemplateDeclarations: Yes
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080023BinPackArguments: true
24BinPackParameters: true
Patrick Williams87381412023-10-20 11:18:48 -050025BitFieldColonSpacing: None
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080026BraceWrapping:
James Feistfcd2d3a2020-05-28 10:38:15 -070027 AfterCaseLabel: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams87381412023-10-20 11:18:48 -050031 AfterExternBlock: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williams87381412023-10-20 11:18:48 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080041 IndentBraces: false
James Feistfcd2d3a2020-05-28 10:38:15 -070042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -050045BreakAfterAttributes: Never
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
James Feistfcd2d3a2020-05-28 10:38:15 -070050BreakInheritanceList: AfterColon
Patrick Williamsb37abfb2023-05-10 07:50:33 -050051BreakStringLiterals: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
James Feistfcd2d3a2020-05-28 10:38:15 -070054CompactNamespaces: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
James Feistfcd2d3a2020-05-28 10:38:15 -070058DerivePointerAlignment: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080059DisableFormat: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080060FixNamespaceComments: true
Patrick Williams87381412023-10-20 11:18:48 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
James Feistfcd2d3a2020-05-28 10:38:15 -070068 Priority: 7
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080069 - Regex: '^"config.h"'
70 Priority: -1
James Feistfcd2d3a2020-05-28 10:38:15 -070071 - Regex: '^".*\.h"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080072 Priority: 1
James Feistfcd2d3a2020-05-28 10:38:15 -070073 - Regex: '^".*\.hpp"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080074 Priority: 2
James Feistfcd2d3a2020-05-28 10:38:15 -070075 - Regex: '^<.*\.h>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080076 Priority: 3
James Feistfcd2d3a2020-05-28 10:38:15 -070077 - Regex: '^<.*\.hpp>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080078 Priority: 4
James Feistfcd2d3a2020-05-28 10:38:15 -070079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080083IndentCaseLabels: true
Patrick Williams87381412023-10-20 11:18:48 -050084IndentExternBlock: NoIndent
Patrick Williamsb37abfb2023-05-10 07:50:33 -050085IndentRequiresClause: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
90LambdaBodyIndentation: OuterScope
91LineEnding: LF
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams87381412023-10-20 11:18:48 -050099PackConstructorInitializers: BinPack
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500100PenaltyBreakAssignment: 25
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500107PenaltyIndentedWhitespace: 0
Patrick Williams87381412023-10-20 11:18:48 -0500108PointerAlignment: Left
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500109QualifierAlignment: Left
110ReferenceAlignment: Left
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800111ReflowComments: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
Patrick Williams87381412023-10-20 11:18:48 -0500114SortIncludes: CaseSensitive
James Feistfcd2d3a2020-05-28 10:38:15 -0700115SortUsingDeclarations: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800116SpaceAfterCStyleCast: false
James Feistfcd2d3a2020-05-28 10:38:15 -0700117SpaceAfterTemplateKeyword: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800118SpaceBeforeAssignmentOperators: true
James Feistfcd2d3a2020-05-28 10:38:15 -0700119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800122SpaceBeforeParens: ControlStatements
James Feistfcd2d3a2020-05-28 10:38:15 -0700123SpaceBeforeRangeBasedForLoopColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williams87381412023-10-20 11:18:48 -0500126SpacesInAngles: Never
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500131Standard: Latest
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800132TabWidth: 4
133UseTab: Never
134...
James Feistfcd2d3a2020-05-28 10:38:15 -0700135