blob: e5530e6b6b094a2c67bbfb4416a3a6b05e7239be [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 +053020AlwaysBreakBeforeMultilineStrings: false
Tom Josephcf0c6422019-02-10 21:37:44 +053021BinPackArguments: true
22BinPackParameters: true
Patrick Williamsa6756622023-10-20 11:19:15 -050023BitFieldColonSpacing: None
Tom Josephcf0c6422019-02-10 21:37:44 +053024BraceWrapping:
Deepak Kodihalli826c9d42020-05-26 01:58:06 -050025 AfterCaseLabel: true
Tom Josephcf0c6422019-02-10 21:37:44 +053026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williamsa6756622023-10-20 11:19:15 -050029 AfterExternBlock: true
Tom Josephcf0c6422019-02-10 21:37:44 +053030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williamsa6756622023-10-20 11:19:15 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Tom Josephcf0c6422019-02-10 21:37:44 +053039 IndentBraces: false
George Liu6492f522020-06-16 10:34:05 +080040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
Patrick Williams6da4f912023-05-10 07:50:53 -050043BreakAfterAttributes: Never
Patrick Williams0ce01d72024-12-18 11:21:31 -050044BreakAfterReturnType: Automatic
Tom Josephcf0c6422019-02-10 21:37:44 +053045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
George Liu6492f522020-06-16 10:34:05 +080049BreakInheritanceList: AfterColon
George Liua6678d72021-09-14 09:54:45 +080050BreakStringLiterals: false
Patrick Williams0ce01d72024-12-18 11:21:31 -050051BreakTemplateDeclarations: Yes
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
Patrick Williams366507c2025-02-03 14:28:01 -0500107PenaltyReturnTypeOnItsOwnLine: 150
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