blob: d92a3f10a47b602bb47e3844ce15ebcf7fb92bbb [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
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093017AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093019AlwaysBreakAfterReturnType: None
20AlwaysBreakBeforeMultilineStrings: false
George Liu61b90632020-06-22 10:55:13 +080021AlwaysBreakTemplateDeclarations: Yes
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093022BinPackArguments: true
23BinPackParameters: true
24BraceWrapping:
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
29 AfterFunction: true
30 AfterNamespace: true
31 AfterObjCDeclaration: true
32 AfterStruct: true
33 AfterUnion: true
George Liu61b90632020-06-22 10:55:13 +080034 AfterExternBlock: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093035 BeforeCatch: true
36 BeforeElse: true
37 IndentBraces: false
George Liu61b90632020-06-22 10:55:13 +080038 SplitEmptyFunction: false
39 SplitEmptyRecord: false
40 SplitEmptyNamespace: false
Patrick Williams1c4503e2023-05-10 07:50:54 -050041BreakAfterAttributes: Never
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093042BreakBeforeBinaryOperators: None
43BreakBeforeBraces: Custom
44BreakBeforeTernaryOperators: true
45BreakConstructorInitializers: AfterColon
George Liu61b90632020-06-22 10:55:13 +080046BreakInheritanceList: AfterColon
George Liu520c5e52021-09-10 10:28:54 +080047BreakStringLiterals: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093048ColumnLimit: 80
49CommentPragmas: '^ IWYU pragma:'
George Liu61b90632020-06-22 10:55:13 +080050CompactNamespaces: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093051ConstructorInitializerAllOnOneLineOrOnePerLine: false
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54Cpp11BracedListStyle: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050055DeriveLineEnding: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093056DerivePointerAlignment: false
57PointerAlignment: Left
58DisableFormat: false
59ExperimentalAutoDetectBinPacking: false
60FixNamespaceComments: true
61ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
62IncludeBlocks: Regroup
63IncludeCategories:
64 - Regex: '^[<"](gtest|gmock)'
George Liu61b90632020-06-22 10:55:13 +080065 Priority: 7
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093066 - Regex: '^"config.h"'
67 Priority: -1
George Liu61b90632020-06-22 10:55:13 +080068 - Regex: '^".*\.h"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093069 Priority: 1
George Liu61b90632020-06-22 10:55:13 +080070 - Regex: '^".*\.hpp"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093071 Priority: 2
George Liu61b90632020-06-22 10:55:13 +080072 - Regex: '^<.*\.h>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093073 Priority: 3
George Liu61b90632020-06-22 10:55:13 +080074 - Regex: '^<.*\.hpp>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093075 Priority: 4
George Liu61b90632020-06-22 10:55:13 +080076 - Regex: '^<.*'
77 Priority: 5
78 - Regex: '.*'
79 Priority: 6
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093080IndentCaseLabels: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050081IndentRequiresClause: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093082IndentWidth: 4
83IndentWrappedFunctionNames: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050084InsertNewlineAtEOF: true
85KeepEmptyLinesAtTheStartOfBlocks: false
86LambdaBodyIndentation: OuterScope
87LineEnding: LF
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093088MacroBlockBegin: ''
89MacroBlockEnd: ''
90MaxEmptyLinesToKeep: 1
91NamespaceIndentation: None
92ObjCBlockIndentWidth: 2
93ObjCSpaceAfterProperty: false
94ObjCSpaceBeforeProtocolList: true
Patrick Williams1c4503e2023-05-10 07:50:54 -050095PenaltyBreakAssignment: 25
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093096PenaltyBreakBeforeFirstCallParameter: 19
97PenaltyBreakComment: 300
98PenaltyBreakFirstLessLess: 120
99PenaltyBreakString: 1000
100PenaltyExcessCharacter: 1000000
101PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams1c4503e2023-05-10 07:50:54 -0500102PenaltyIndentedWhitespace: 0
103QualifierAlignment: Left
104ReferenceAlignment: Left
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930105ReflowComments: true
Patrick Williams1c4503e2023-05-10 07:50:54 -0500106RequiresClausePosition: OwnLine
107RequiresExpressionIndentation: Keyword
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930108SortIncludes: true
109SortUsingDeclarations: true
110SpaceAfterCStyleCast: false
George Liu61b90632020-06-22 10:55:13 +0800111SpaceAfterTemplateKeyword: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930112SpaceBeforeAssignmentOperators: true
George Liu61b90632020-06-22 10:55:13 +0800113SpaceBeforeCpp11BracedList: false
114SpaceBeforeCtorInitializerColon: true
115SpaceBeforeInheritanceColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930116SpaceBeforeParens: ControlStatements
George Liu61b90632020-06-22 10:55:13 +0800117SpaceBeforeRangeBasedForLoopColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930118SpaceInEmptyParentheses: false
119SpacesBeforeTrailingComments: 1
120SpacesInAngles: false
121SpacesInContainerLiterals: true
122SpacesInCStyleCastParentheses: false
123SpacesInParentheses: false
124SpacesInSquareBrackets: false
George Liu61b90632020-06-22 10:55:13 +0800125Standard: Latest
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930126TabWidth: 4
127UseTab: Never
128...
Andrew Jeffery0c3bcbf2023-02-03 15:44:37 +1030129