blob: a75a2c266137ca6c7017f3d8710a60d81c5aa7ee [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 +093020AlwaysBreakBeforeMultilineStrings: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093021BinPackArguments: true
22BinPackParameters: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050023BitFieldColonSpacing: None
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093024BraceWrapping:
George Liu61b90632020-06-22 10:55:13 +080025 AfterCaseLabel: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050029 AfterExternBlock: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williams59c2e0e2023-10-20 11:19:15 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093039 IndentBraces: false
George Liu61b90632020-06-22 10:55:13 +080040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
Patrick Williams1c4503e2023-05-10 07:50:54 -050043BreakAfterAttributes: Never
Patrick Williamsd825f562024-12-18 11:21:34 -050044BreakAfterReturnType: Automatic
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
George Liu61b90632020-06-22 10:55:13 +080049BreakInheritanceList: AfterColon
George Liu520c5e52021-09-10 10:28:54 +080050BreakStringLiterals: false
Patrick Williamsd825f562024-12-18 11:21:34 -050051BreakTemplateDeclarations: Yes
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
Patrick Williamsdb82c0f2024-08-16 15:21:02 -040090LambdaBodyIndentation: Signature
Patrick Williams1c4503e2023-05-10 07:50:54 -050091LineEnding: 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
Patrick Williamsdb82c0f2024-08-16 15:21:02 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williamsdb82c0f2024-08-16 15:21:02 -0400105PenaltyBreakTemplateDeclaration: 10
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsdb82c0f2024-08-16 15:21:02 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500109PointerAlignment: Left
Patrick Williams1c4503e2023-05-10 07:50:54 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930112ReflowComments: true
Patrick Williams1c4503e2023-05-10 07:50:54 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500115SortIncludes: CaseSensitive
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
George Liu61b90632020-06-22 10:55:13 +0800118SpaceAfterTemplateKeyword: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930119SpaceBeforeAssignmentOperators: true
George Liu61b90632020-06-22 10:55:13 +0800120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930123SpaceBeforeParens: ControlStatements
George Liu61b90632020-06-22 10:55:13 +0800124SpaceBeforeRangeBasedForLoopColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams59c2e0e2023-10-20 11:19:15 -0500127SpacesInAngles: Never
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
George Liu61b90632020-06-22 10:55:13 +0800132Standard: Latest
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930133TabWidth: 4
134UseTab: Never
135...
Andrew Jeffery0c3bcbf2023-02-03 15:44:37 +1030136