blob: 00e2e25803b1473dd885cc7b5d978922cb40e728 [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
George Liua6678d72021-09-14 09:54:45 +080044BreakStringLiterals: false
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
Manojkiran Eda66d26e32021-11-23 09:09:18 +053052DeriveLineEnding: false
Tom Josephcf0c6422019-02-10 21:37:44 +053053DerivePointerAlignment: false
54PointerAlignment: Left
55DisableFormat: false
56ExperimentalAutoDetectBinPacking: false
57FixNamespaceComments: true
58ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
59IncludeBlocks: Regroup
60IncludeCategories:
61 - Regex: '^[<"](gtest|gmock)'
George Liu6492f522020-06-16 10:34:05 +080062 Priority: 7
Tom Josephcf0c6422019-02-10 21:37:44 +053063 - Regex: '^"config.h"'
64 Priority: -1
George Liu6492f522020-06-16 10:34:05 +080065 - Regex: '^".*\.h"'
Tom Josephcf0c6422019-02-10 21:37:44 +053066 Priority: 1
George Liu6492f522020-06-16 10:34:05 +080067 - Regex: '^".*\.hpp"'
Tom Josephcf0c6422019-02-10 21:37:44 +053068 Priority: 2
George Liu6492f522020-06-16 10:34:05 +080069 - Regex: '^<.*\.h>'
Tom Josephcf0c6422019-02-10 21:37:44 +053070 Priority: 3
George Liu6492f522020-06-16 10:34:05 +080071 - Regex: '^<.*\.hpp>'
Tom Josephcf0c6422019-02-10 21:37:44 +053072 Priority: 4
George Liu6492f522020-06-16 10:34:05 +080073 - Regex: '^<.*'
74 Priority: 5
75 - Regex: '.*'
76 Priority: 6
Tom Josephcf0c6422019-02-10 21:37:44 +053077IndentCaseLabels: true
78IndentWidth: 4
79IndentWrappedFunctionNames: true
Manojkiran Edaca1998f2022-06-06 16:48:25 +053080KeepEmptyLinesAtTheStartOfBlocks: false
Tom Josephcf0c6422019-02-10 21:37:44 +053081MacroBlockBegin: ''
82MacroBlockEnd: ''
83MaxEmptyLinesToKeep: 1
84NamespaceIndentation: None
85ObjCBlockIndentWidth: 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 Liu6492f522020-06-16 10:34:05 +080098SpaceAfterTemplateKeyword: true
Tom Josephcf0c6422019-02-10 21:37:44 +053099SpaceBeforeAssignmentOperators: true
George Liu6492f522020-06-16 10:34:05 +0800100SpaceBeforeCpp11BracedList: false
101SpaceBeforeCtorInitializerColon: true
102SpaceBeforeInheritanceColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530103SpaceBeforeParens: ControlStatements
George Liu6492f522020-06-16 10:34:05 +0800104SpaceBeforeRangeBasedForLoopColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530105SpaceInEmptyParentheses: false
106SpacesBeforeTrailingComments: 1
107SpacesInAngles: false
108SpacesInContainerLiterals: true
109SpacesInCStyleCastParentheses: false
110SpacesInParentheses: false
111SpacesInSquareBrackets: false
George Liu6492f522020-06-16 10:34:05 +0800112Standard: Latest
Tom Josephcf0c6422019-02-10 21:37:44 +0530113TabWidth: 4
Manojkiran Eda66d26e32021-11-23 09:09:18 +0530114UseCRLF: false
Tom Josephcf0c6422019-02-10 21:37:44 +0530115UseTab: Never
116...
Manojkiran Eda66d26e32021-11-23 09:09:18 +0530117