blob: a75a2c266137ca6c7017f3d8710a60d81c5aa7ee [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 +080020AlwaysBreakBeforeMultilineStrings: false
Will Lianga1d42022019-06-13 14:17:12 +080021BinPackArguments: true
22BinPackParameters: true
Patrick Williamsbb764e42023-10-20 11:20:03 -050023BitFieldColonSpacing: None
Will Lianga1d42022019-06-13 14:17:12 +080024BraceWrapping:
Patrick Williams527190b2023-05-10 07:51:28 -050025 AfterCaseLabel: true
Will Lianga1d42022019-06-13 14:17:12 +080026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williamsbb764e42023-10-20 11:20:03 -050029 AfterExternBlock: true
Will Lianga1d42022019-06-13 14:17:12 +080030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williamsbb764e42023-10-20 11:20:03 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Will Lianga1d42022019-06-13 14:17:12 +080039 IndentBraces: false
Patrick Williams527190b2023-05-10 07:51:28 -050040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
43BreakAfterAttributes: Never
Patrick Williams045acea2024-12-18 11:22:40 -050044BreakAfterReturnType: Automatic
Will Lianga1d42022019-06-13 14:17:12 +080045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
Patrick Williams527190b2023-05-10 07:51:28 -050049BreakInheritanceList: AfterColon
50BreakStringLiterals: false
Patrick Williams045acea2024-12-18 11:22:40 -050051BreakTemplateDeclarations: Yes
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
Patrick Williams1e8c42c2024-08-16 15:22:09 -040090LambdaBodyIndentation: Signature
Patrick Williams527190b2023-05-10 07:51:28 -050091LineEnding: 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
Patrick Williams1e8c42c2024-08-16 15:22:09 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Will Lianga1d42022019-06-13 14:17:12 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williams1e8c42c2024-08-16 15:22:09 -0400105PenaltyBreakTemplateDeclaration: 10
Will Lianga1d42022019-06-13 14:17:12 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams1e8c42c2024-08-16 15:22:09 -0400108PenaltyIndentedWhitespace: 1
Patrick Williamsbb764e42023-10-20 11:20:03 -0500109PointerAlignment: Left
Patrick Williams527190b2023-05-10 07:51:28 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Will Lianga1d42022019-06-13 14:17:12 +0800112ReflowComments: true
Patrick Williams527190b2023-05-10 07:51:28 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williamsbb764e42023-10-20 11:20:03 -0500115SortIncludes: CaseSensitive
Will Lianga1d42022019-06-13 14:17:12 +0800116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
Patrick Williams527190b2023-05-10 07:51:28 -0500118SpaceAfterTemplateKeyword: true
Will Lianga1d42022019-06-13 14:17:12 +0800119SpaceBeforeAssignmentOperators: true
Patrick Williams527190b2023-05-10 07:51:28 -0500120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Will Lianga1d42022019-06-13 14:17:12 +0800123SpaceBeforeParens: ControlStatements
Patrick Williams527190b2023-05-10 07:51:28 -0500124SpaceBeforeRangeBasedForLoopColon: true
Will Lianga1d42022019-06-13 14:17:12 +0800125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williamsbb764e42023-10-20 11:20:03 -0500127SpacesInAngles: Never
Will Lianga1d42022019-06-13 14:17:12 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
Patrick Williams527190b2023-05-10 07:51:28 -0500132Standard: Latest
Will Lianga1d42022019-06-13 14:17:12 +0800133TabWidth: 4
134UseTab: Never
135...
136