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