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