blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [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
Patrick Williams6da4f912023-05-10 07:50:53 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Tom Josephcf0c6422019-02-10 21:37:44 +053013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williams6da4f912023-05-10 07:50:53 -050014AllowShortBlocksOnASingleLine: Empty
Tom Josephcf0c6422019-02-10 21:37:44 +053015AllowShortCaseLabelsOnASingleLine: false
Patrick Williams6da4f912023-05-10 07:50:53 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williamsa6756622023-10-20 11:19:15 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Tom Josephcf0c6422019-02-10 21:37:44 +053019AllowShortLoopsOnASingleLine: false
Tom Josephcf0c6422019-02-10 21:37:44 +053020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
George Liu6492f522020-06-16 10:34:05 +080022AlwaysBreakTemplateDeclarations: Yes
Tom Josephcf0c6422019-02-10 21:37:44 +053023BinPackArguments: true
24BinPackParameters: true
Patrick Williamsa6756622023-10-20 11:19:15 -050025BitFieldColonSpacing: None
Tom Josephcf0c6422019-02-10 21:37:44 +053026BraceWrapping:
Deepak Kodihalli826c9d42020-05-26 01:58:06 -050027 AfterCaseLabel: true
Tom Josephcf0c6422019-02-10 21:37:44 +053028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williamsa6756622023-10-20 11:19:15 -050031 AfterExternBlock: true
Tom Josephcf0c6422019-02-10 21:37:44 +053032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williamsa6756622023-10-20 11:19:15 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Tom Josephcf0c6422019-02-10 21:37:44 +053041 IndentBraces: false
George Liu6492f522020-06-16 10:34:05 +080042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williams6da4f912023-05-10 07:50:53 -050045BreakAfterAttributes: Never
Tom Josephcf0c6422019-02-10 21:37:44 +053046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
George Liu6492f522020-06-16 10:34:05 +080050BreakInheritanceList: AfterColon
George Liua6678d72021-09-14 09:54:45 +080051BreakStringLiterals: false
Tom Josephcf0c6422019-02-10 21:37:44 +053052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
George Liu6492f522020-06-16 10:34:05 +080054CompactNamespaces: false
Tom Josephcf0c6422019-02-10 21:37:44 +053055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
Tom Josephcf0c6422019-02-10 21:37:44 +053059DisableFormat: false
Tom Josephcf0c6422019-02-10 21:37:44 +053060FixNamespaceComments: true
Patrick Williamsa6756622023-10-20 11:19:15 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Tom Josephcf0c6422019-02-10 21:37:44 +053065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
George Liu6492f522020-06-16 10:34:05 +080068 Priority: 7
Tom Josephcf0c6422019-02-10 21:37:44 +053069 - Regex: '^"config.h"'
70 Priority: -1
George Liu6492f522020-06-16 10:34:05 +080071 - Regex: '^".*\.h"'
Tom Josephcf0c6422019-02-10 21:37:44 +053072 Priority: 1
George Liu6492f522020-06-16 10:34:05 +080073 - Regex: '^".*\.hpp"'
Tom Josephcf0c6422019-02-10 21:37:44 +053074 Priority: 2
George Liu6492f522020-06-16 10:34:05 +080075 - Regex: '^<.*\.h>'
Tom Josephcf0c6422019-02-10 21:37:44 +053076 Priority: 3
George Liu6492f522020-06-16 10:34:05 +080077 - Regex: '^<.*\.hpp>'
Tom Josephcf0c6422019-02-10 21:37:44 +053078 Priority: 4
George Liu6492f522020-06-16 10:34:05 +080079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Tom Josephcf0c6422019-02-10 21:37:44 +053083IndentCaseLabels: true
Patrick Williamsa6756622023-10-20 11:19:15 -050084IndentExternBlock: NoIndent
Patrick Williams6da4f912023-05-10 07:50:53 -050085IndentRequiresClause: true
Tom Josephcf0c6422019-02-10 21:37:44 +053086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williams6da4f912023-05-10 07:50:53 -050088InsertNewlineAtEOF: true
Manojkiran Edaca1998f2022-06-06 16:48:25 +053089KeepEmptyLinesAtTheStartOfBlocks: false
Patrick Williams6da4f912023-05-10 07:50:53 -050090LambdaBodyIndentation: OuterScope
91LineEnding: LF
Tom Josephcf0c6422019-02-10 21:37:44 +053092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williamsa6756622023-10-20 11:19:15 -050099PackConstructorInitializers: BinPack
Patrick Williams6da4f912023-05-10 07:50:53 -0500100PenaltyBreakAssignment: 25
Tom Josephcf0c6422019-02-10 21:37:44 +0530101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams6da4f912023-05-10 07:50:53 -0500107PenaltyIndentedWhitespace: 0
Patrick Williamsa6756622023-10-20 11:19:15 -0500108PointerAlignment: Left
Patrick Williams6da4f912023-05-10 07:50:53 -0500109QualifierAlignment: Left
110ReferenceAlignment: Left
Tom Josephcf0c6422019-02-10 21:37:44 +0530111ReflowComments: true
Patrick Williams6da4f912023-05-10 07:50:53 -0500112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
Patrick Williamsa6756622023-10-20 11:19:15 -0500114SortIncludes: CaseSensitive
Tom Josephcf0c6422019-02-10 21:37:44 +0530115SortUsingDeclarations: true
116SpaceAfterCStyleCast: false
George Liu6492f522020-06-16 10:34:05 +0800117SpaceAfterTemplateKeyword: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530118SpaceBeforeAssignmentOperators: true
George Liu6492f522020-06-16 10:34:05 +0800119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530122SpaceBeforeParens: ControlStatements
George Liu6492f522020-06-16 10:34:05 +0800123SpaceBeforeRangeBasedForLoopColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williamsa6756622023-10-20 11:19:15 -0500126SpacesInAngles: Never
Tom Josephcf0c6422019-02-10 21:37:44 +0530127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
George Liu6492f522020-06-16 10:34:05 +0800131Standard: Latest
Tom Josephcf0c6422019-02-10 21:37:44 +0530132TabWidth: 4
133UseTab: Never
134...
Manojkiran Eda66d26e32021-11-23 09:09:18 +0530135