blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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
Patrick Williams1bcced02024-08-16 15:20:24 -040090LambdaBodyIndentation: Signature
Patrick Williamsb37abfb2023-05-10 07:50:33 -050091LineEnding: 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
Patrick Williams1bcced02024-08-16 15:20:24 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williams1bcced02024-08-16 15:20:24 -0400105PenaltyBreakTemplateDeclaration: 10
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams1bcced02024-08-16 15:20:24 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams87381412023-10-20 11:18:48 -0500109PointerAlignment: Left
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800112ReflowComments: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williams87381412023-10-20 11:18:48 -0500115SortIncludes: CaseSensitive
James Feistfcd2d3a2020-05-28 10:38:15 -0700116SortUsingDeclarations: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800117SpaceAfterCStyleCast: false
James Feistfcd2d3a2020-05-28 10:38:15 -0700118SpaceAfterTemplateKeyword: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800119SpaceBeforeAssignmentOperators: true
James Feistfcd2d3a2020-05-28 10:38:15 -0700120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800123SpaceBeforeParens: ControlStatements
James Feistfcd2d3a2020-05-28 10:38:15 -0700124SpaceBeforeRangeBasedForLoopColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams87381412023-10-20 11:18:48 -0500127SpacesInAngles: Never
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500132Standard: Latest
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800133TabWidth: 4
134UseTab: Never
135...
James Feistfcd2d3a2020-05-28 10:38:15 -0700136