blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [file] [log] [blame]
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +09301---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
George Liu61b90632020-06-22 10:55:13 +08008AlignEscapedNewlines: Right
Patrick Williams1c4503e2023-05-10 07:50:54 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050014AllowShortBlocksOnASingleLine: Empty
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093015AllowShortCaseLabelsOnASingleLine: false
Patrick Williams1c4503e2023-05-10 07:50:54 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams59c2e0e2023-10-20 11:19:15 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093019AllowShortLoopsOnASingleLine: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
George Liu61b90632020-06-22 10:55:13 +080022AlwaysBreakTemplateDeclarations: Yes
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093023BinPackArguments: true
24BinPackParameters: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050025BitFieldColonSpacing: None
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093026BraceWrapping:
George Liu61b90632020-06-22 10:55:13 +080027 AfterCaseLabel: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050031 AfterExternBlock: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093041 IndentBraces: false
George Liu61b90632020-06-22 10:55:13 +080042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williams1c4503e2023-05-10 07:50:54 -050045BreakAfterAttributes: Never
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
George Liu61b90632020-06-22 10:55:13 +080050BreakInheritanceList: AfterColon
George Liu520c5e52021-09-10 10:28:54 +080051BreakStringLiterals: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
George Liu61b90632020-06-22 10:55:13 +080054CompactNamespaces: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093059DisableFormat: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093060FixNamespaceComments: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
George Liu61b90632020-06-22 10:55:13 +080068 Priority: 7
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093069 - Regex: '^"config.h"'
70 Priority: -1
George Liu61b90632020-06-22 10:55:13 +080071 - Regex: '^".*\.h"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093072 Priority: 1
George Liu61b90632020-06-22 10:55:13 +080073 - Regex: '^".*\.hpp"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093074 Priority: 2
George Liu61b90632020-06-22 10:55:13 +080075 - Regex: '^<.*\.h>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093076 Priority: 3
George Liu61b90632020-06-22 10:55:13 +080077 - Regex: '^<.*\.hpp>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093078 Priority: 4
George Liu61b90632020-06-22 10:55:13 +080079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093083IndentCaseLabels: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050084IndentExternBlock: NoIndent
Patrick Williams1c4503e2023-05-10 07:50:54 -050085IndentRequiresClause: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
90LambdaBodyIndentation: OuterScope
91LineEnding: LF
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050099PackConstructorInitializers: BinPack
Patrick Williams1c4503e2023-05-10 07:50:54 -0500100PenaltyBreakAssignment: 25
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams1c4503e2023-05-10 07:50:54 -0500107PenaltyIndentedWhitespace: 0
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500108PointerAlignment: Left
Patrick Williams1c4503e2023-05-10 07:50:54 -0500109QualifierAlignment: Left
110ReferenceAlignment: Left
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930111ReflowComments: true
Patrick Williams1c4503e2023-05-10 07:50:54 -0500112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500114SortIncludes: CaseSensitive
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930115SortUsingDeclarations: true
116SpaceAfterCStyleCast: false
George Liu61b90632020-06-22 10:55:13 +0800117SpaceAfterTemplateKeyword: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930118SpaceBeforeAssignmentOperators: true
George Liu61b90632020-06-22 10:55:13 +0800119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930122SpaceBeforeParens: ControlStatements
George Liu61b90632020-06-22 10:55:13 +0800123SpaceBeforeRangeBasedForLoopColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500126SpacesInAngles: Never
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
George Liu61b90632020-06-22 10:55:13 +0800131Standard: Latest
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930132TabWidth: 4
133UseTab: Never
134...
Andrew Jeffery0c3bcbf2023-02-03 15:44:37 +1030135