blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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 Williams16c2a0a2024-08-16 15:20:59 -040090LambdaBodyIndentation: Signature
Patrick Williams6da4f912023-05-10 07:50:53 -050091LineEnding: 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
Patrick Williams16c2a0a2024-08-16 15:20:59 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Tom Josephcf0c6422019-02-10 21:37:44 +0530102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williams16c2a0a2024-08-16 15:20:59 -0400105PenaltyBreakTemplateDeclaration: 10
Tom Josephcf0c6422019-02-10 21:37:44 +0530106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams16c2a0a2024-08-16 15:20:59 -0400108PenaltyIndentedWhitespace: 1
Patrick Williamsa6756622023-10-20 11:19:15 -0500109PointerAlignment: Left
Patrick Williams6da4f912023-05-10 07:50:53 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Tom Josephcf0c6422019-02-10 21:37:44 +0530112ReflowComments: true
Patrick Williams6da4f912023-05-10 07:50:53 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williamsa6756622023-10-20 11:19:15 -0500115SortIncludes: CaseSensitive
Tom Josephcf0c6422019-02-10 21:37:44 +0530116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
George Liu6492f522020-06-16 10:34:05 +0800118SpaceAfterTemplateKeyword: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530119SpaceBeforeAssignmentOperators: true
George Liu6492f522020-06-16 10:34:05 +0800120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530123SpaceBeforeParens: ControlStatements
George Liu6492f522020-06-16 10:34:05 +0800124SpaceBeforeRangeBasedForLoopColon: true
Tom Josephcf0c6422019-02-10 21:37:44 +0530125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williamsa6756622023-10-20 11:19:15 -0500127SpacesInAngles: Never
Tom Josephcf0c6422019-02-10 21:37:44 +0530128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
George Liu6492f522020-06-16 10:34:05 +0800132Standard: Latest
Tom Josephcf0c6422019-02-10 21:37:44 +0530133TabWidth: 4
134UseTab: Never
135...
Manojkiran Eda66d26e32021-11-23 09:09:18 +0530136