blob: 625a0a05a2b3adc6d183cca7c18135512d25fe0a [file] [log] [blame]
Tom Josephcf0c6422019-02-10 21:37:44 +05301---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
George Liu6492f522020-06-16 10:34:05 +08008AlignEscapedNewlines: Right
Tom Josephcf0c6422019-02-10 21:37:44 +05309AlignOperands: true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: None
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
Tom Josephcf0c6422019-02-10 21:37:44 +053017AlwaysBreakAfterReturnType: None
18AlwaysBreakBeforeMultilineStrings: false
George Liu6492f522020-06-16 10:34:05 +080019AlwaysBreakTemplateDeclarations: Yes
Tom Josephcf0c6422019-02-10 21:37:44 +053020BinPackArguments: true
21BinPackParameters: true
22BraceWrapping:
Deepak Kodihalli826c9d42020-05-26 01:58:06 -050023 AfterCaseLabel: true
Tom Josephcf0c6422019-02-10 21:37:44 +053024 AfterClass: true
25 AfterControlStatement: true
26 AfterEnum: true
27 AfterFunction: true
28 AfterNamespace: true
29 AfterObjCDeclaration: true
30 AfterStruct: true
31 AfterUnion: true
George Liu6492f522020-06-16 10:34:05 +080032 AfterExternBlock: true
Tom Josephcf0c6422019-02-10 21:37:44 +053033 BeforeCatch: true
34 BeforeElse: true
35 IndentBraces: false
George Liu6492f522020-06-16 10:34:05 +080036 SplitEmptyFunction: false
37 SplitEmptyRecord: false
38 SplitEmptyNamespace: false
Tom Josephcf0c6422019-02-10 21:37:44 +053039BreakBeforeBinaryOperators: None
40BreakBeforeBraces: Custom
41BreakBeforeTernaryOperators: true
42BreakConstructorInitializers: AfterColon
George Liu6492f522020-06-16 10:34:05 +080043BreakInheritanceList: AfterColon
44BreakStringLiterals: true
Tom Josephcf0c6422019-02-10 21:37:44 +053045ColumnLimit: 80
46CommentPragmas: '^ IWYU pragma:'
George Liu6492f522020-06-16 10:34:05 +080047CompactNamespaces: false
Tom Josephcf0c6422019-02-10 21:37:44 +053048ConstructorInitializerAllOnOneLineOrOnePerLine: 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 Liu6492f522020-06-16 10:34:05 +080061 Priority: 7
Tom Josephcf0c6422019-02-10 21:37:44 +053062 - Regex: '^"config.h"'
63 Priority: -1
George Liu6492f522020-06-16 10:34:05 +080064 - Regex: '^".*\.h"'
Tom Josephcf0c6422019-02-10 21:37:44 +053065 Priority: 1
George Liu6492f522020-06-16 10:34:05 +080066 - Regex: '^".*\.hpp"'
Tom Josephcf0c6422019-02-10 21:37:44 +053067 Priority: 2
George Liu6492f522020-06-16 10:34:05 +080068 - Regex: '^<.*\.h>'
Tom Josephcf0c6422019-02-10 21:37:44 +053069 Priority: 3
George Liu6492f522020-06-16 10:34:05 +080070 - Regex: '^<.*\.hpp>'
Tom Josephcf0c6422019-02-10 21:37:44 +053071 Priority: 4
George Liu6492f522020-06-16 10:34:05 +080072 - Regex: '^<.*'
73 Priority: 5
74 - Regex: '.*'
75 Priority: 6
Tom Josephcf0c6422019-02-10 21:37:44 +053076IndentCaseLabels: true
77IndentWidth: 4
78IndentWrappedFunctionNames: true
79KeepEmptyLinesAtTheStartOfBlocks: true
80MacroBlockBegin: ''
81MacroBlockEnd: ''
82MaxEmptyLinesToKeep: 1
83NamespaceIndentation: None
84ObjCBlockIndentWidth: 2
85ObjCSpaceAfterProperty: false
86ObjCSpaceBeforeProtocolList: true
87PenaltyBreakBeforeFirstCallParameter: 19
88PenaltyBreakComment: 300
89PenaltyBreakFirstLessLess: 120
90PenaltyBreakString: 1000
91PenaltyExcessCharacter: 1000000
92PenaltyReturnTypeOnItsOwnLine: 60
93ReflowComments: true
94SortIncludes: true
95SortUsingDeclarations: true
96SpaceAfterCStyleCast: false
George Liu6492f522020-06-16 10:34:05 +080097SpaceAfterTemplateKeyword: true
Tom Josephcf0c6422019-02-10 21:37:44 +053098SpaceBeforeAssignmentOperators: true
George Liu6492f522020-06-16 10:34:05 +080099SpaceBeforeCpp11BracedList: false
100SpaceBeforeCtorInitializerColon: true
101SpaceBeforeInheritanceColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530102SpaceBeforeParens: ControlStatements
George Liu6492f522020-06-16 10:34:05 +0800103SpaceBeforeRangeBasedForLoopColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530104SpaceInEmptyParentheses: false
105SpacesBeforeTrailingComments: 1
106SpacesInAngles: false
107SpacesInContainerLiterals: true
108SpacesInCStyleCastParentheses: false
109SpacesInParentheses: false
110SpacesInSquareBrackets: false
George Liu6492f522020-06-16 10:34:05 +0800111Standard: Latest
Tom Josephcf0c6422019-02-10 21:37:44 +0530112TabWidth: 4
113UseTab: Never
114...