blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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
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