blob: be651e775edcc8dd1bbe61e10e8a733d5027a8c6 [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
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +09309AlignOperands: true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: None
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093017AlwaysBreakAfterReturnType: None
18AlwaysBreakBeforeMultilineStrings: false
George Liu61b90632020-06-22 10:55:13 +080019AlwaysBreakTemplateDeclarations: Yes
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093020BinPackArguments: true
21BinPackParameters: true
22BraceWrapping:
George Liu61b90632020-06-22 10:55:13 +080023 AfterCaseLabel: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093024 AfterClass: true
25 AfterControlStatement: true
26 AfterEnum: true
27 AfterFunction: true
28 AfterNamespace: true
29 AfterObjCDeclaration: true
30 AfterStruct: true
31 AfterUnion: true
George Liu61b90632020-06-22 10:55:13 +080032 AfterExternBlock: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093033 BeforeCatch: true
34 BeforeElse: true
35 IndentBraces: false
George Liu61b90632020-06-22 10:55:13 +080036 SplitEmptyFunction: false
37 SplitEmptyRecord: false
38 SplitEmptyNamespace: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093039BreakBeforeBinaryOperators: None
40BreakBeforeBraces: Custom
41BreakBeforeTernaryOperators: true
42BreakConstructorInitializers: AfterColon
George Liu61b90632020-06-22 10:55:13 +080043BreakInheritanceList: AfterColon
George Liu520c5e52021-09-10 10:28:54 +080044BreakStringLiterals: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093045ColumnLimit: 80
46CommentPragmas: '^ IWYU pragma:'
George Liu61b90632020-06-22 10:55:13 +080047CompactNamespaces: false
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093048ConstructorInitializerAllOnOneLineOrOnePerLine: false
49ConstructorInitializerIndentWidth: 4
50ContinuationIndentWidth: 4
51Cpp11BracedListStyle: true
52DerivePointerAlignment: false
53PointerAlignment: Left
54DisableFormat: false
55ExperimentalAutoDetectBinPacking: false
56FixNamespaceComments: true
57ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
58IncludeBlocks: Regroup
59IncludeCategories:
60 - Regex: '^[<"](gtest|gmock)'
George Liu61b90632020-06-22 10:55:13 +080061 Priority: 7
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093062 - Regex: '^"config.h"'
63 Priority: -1
George Liu61b90632020-06-22 10:55:13 +080064 - Regex: '^".*\.h"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093065 Priority: 1
George Liu61b90632020-06-22 10:55:13 +080066 - Regex: '^".*\.hpp"'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093067 Priority: 2
George Liu61b90632020-06-22 10:55:13 +080068 - Regex: '^<.*\.h>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093069 Priority: 3
George Liu61b90632020-06-22 10:55:13 +080070 - Regex: '^<.*\.hpp>'
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093071 Priority: 4
George Liu61b90632020-06-22 10:55:13 +080072 - Regex: '^<.*'
73 Priority: 5
74 - Regex: '.*'
75 Priority: 6
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093076IndentCaseLabels: true
77IndentWidth: 4
78IndentWrappedFunctionNames: true
79KeepEmptyLinesAtTheStartOfBlocks: true
80MacroBlockBegin: ''
81MacroBlockEnd: ''
82MaxEmptyLinesToKeep: 1
83NamespaceIndentation: None
Andrew Jeffery0c3bcbf2023-02-03 15:44:37 +103084LambdaBodyIndentation: OuterScope
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093085ObjCBlockIndentWidth: 2
86ObjCSpaceAfterProperty: false
87ObjCSpaceBeforeProtocolList: true
88PenaltyBreakBeforeFirstCallParameter: 19
89PenaltyBreakComment: 300
90PenaltyBreakFirstLessLess: 120
91PenaltyBreakString: 1000
92PenaltyExcessCharacter: 1000000
93PenaltyReturnTypeOnItsOwnLine: 60
94ReflowComments: true
95SortIncludes: true
96SortUsingDeclarations: true
97SpaceAfterCStyleCast: false
George Liu61b90632020-06-22 10:55:13 +080098SpaceAfterTemplateKeyword: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +093099SpaceBeforeAssignmentOperators: true
George Liu61b90632020-06-22 10:55:13 +0800100SpaceBeforeCpp11BracedList: false
101SpaceBeforeCtorInitializerColon: true
102SpaceBeforeInheritanceColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930103SpaceBeforeParens: ControlStatements
George Liu61b90632020-06-22 10:55:13 +0800104SpaceBeforeRangeBasedForLoopColon: true
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930105SpaceInEmptyParentheses: false
106SpacesBeforeTrailingComments: 1
107SpacesInAngles: false
108SpacesInContainerLiterals: true
109SpacesInCStyleCastParentheses: false
110SpacesInParentheses: false
111SpacesInSquareBrackets: false
George Liu61b90632020-06-22 10:55:13 +0800112Standard: Latest
Andrew Jefferyc41bf5b2018-05-25 16:39:22 +0930113TabWidth: 4
114UseTab: Never
115...
Andrew Jeffery0c3bcbf2023-02-03 15:44:37 +1030116