blob: a75a2c266137ca6c7017f3d8710a60d81c5aa7ee [file] [log] [blame]
Brad Bishopd1eac882018-03-29 10:34:05 -04001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
George Liu3fe976c2022-06-21 09:37:04 +08008AlignEscapedNewlines: Right
Patrick Williamsc5fe26a2023-05-10 07:50:25 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Brad Bishopd1eac882018-03-29 10:34:05 -040013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050014AllowShortBlocksOnASingleLine: Empty
Brad Bishopd1eac882018-03-29 10:34:05 -040015AllowShortCaseLabelsOnASingleLine: false
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams7fe55e92023-10-20 11:18:36 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Brad Bishopd1eac882018-03-29 10:34:05 -040019AllowShortLoopsOnASingleLine: false
Brad Bishopd1eac882018-03-29 10:34:05 -040020AlwaysBreakBeforeMultilineStrings: false
Brad Bishopd1eac882018-03-29 10:34:05 -040021BinPackArguments: true
22BinPackParameters: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050023BitFieldColonSpacing: None
Brad Bishopd1eac882018-03-29 10:34:05 -040024BraceWrapping:
George Liu3fe976c2022-06-21 09:37:04 +080025 AfterCaseLabel: true
Brad Bishopd1eac882018-03-29 10:34:05 -040026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050029 AfterExternBlock: true
Brad Bishopd1eac882018-03-29 10:34:05 -040030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Brad Bishopd1eac882018-03-29 10:34:05 -040039 IndentBraces: false
George Liu3fe976c2022-06-21 09:37:04 +080040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050043BreakAfterAttributes: Never
Patrick Williams824b68d2024-12-18 11:20:36 -050044BreakAfterReturnType: Automatic
Brad Bishopd1eac882018-03-29 10:34:05 -040045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
George Liu3fe976c2022-06-21 09:37:04 +080049BreakInheritanceList: AfterColon
50BreakStringLiterals: false
Patrick Williams824b68d2024-12-18 11:20:36 -050051BreakTemplateDeclarations: Yes
Brad Bishopd1eac882018-03-29 10:34:05 -040052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
George Liu3fe976c2022-06-21 09:37:04 +080054CompactNamespaces: false
Brad Bishopd1eac882018-03-29 10:34:05 -040055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
Patrick Venture3d6d3182018-08-31 09:33:09 -070058DerivePointerAlignment: false
Brad Bishopd1eac882018-03-29 10:34:05 -040059DisableFormat: false
Brad Bishopd1eac882018-03-29 10:34:05 -040060FixNamespaceComments: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Patrick Venture3d6d3182018-08-31 09:33:09 -070065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
George Liu3fe976c2022-06-21 09:37:04 +080068 Priority: 7
Patrick Venture3d6d3182018-08-31 09:33:09 -070069 - Regex: '^"config.h"'
70 Priority: -1
George Liu3fe976c2022-06-21 09:37:04 +080071 - Regex: '^".*\.h"'
Patrick Venture3d6d3182018-08-31 09:33:09 -070072 Priority: 1
George Liu3fe976c2022-06-21 09:37:04 +080073 - Regex: '^".*\.hpp"'
Patrick Venture3d6d3182018-08-31 09:33:09 -070074 Priority: 2
George Liu3fe976c2022-06-21 09:37:04 +080075 - Regex: '^<.*\.h>'
Patrick Venture3d6d3182018-08-31 09:33:09 -070076 Priority: 3
George Liu3fe976c2022-06-21 09:37:04 +080077 - Regex: '^<.*\.hpp>'
Patrick Venture3d6d3182018-08-31 09:33:09 -070078 Priority: 4
George Liu3fe976c2022-06-21 09:37:04 +080079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Brad Bishopd1eac882018-03-29 10:34:05 -040083IndentCaseLabels: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050084IndentExternBlock: NoIndent
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050085IndentRequiresClause: true
Brad Bishopd1eac882018-03-29 10:34:05 -040086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050088InsertNewlineAtEOF: true
George Liu3fe976c2022-06-21 09:37:04 +080089KeepEmptyLinesAtTheStartOfBlocks: false
Patrick Williamseab4f8c2024-08-16 15:20:10 -040090LambdaBodyIndentation: Signature
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050091LineEnding: LF
Brad Bishopd1eac882018-03-29 10:34:05 -040092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050099PackConstructorInitializers: BinPack
Patrick Williamsc5fe26a2023-05-10 07:50:25 -0500100PenaltyBreakAssignment: 25
Patrick Williamseab4f8c2024-08-16 15:20:10 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Brad Bishopd1eac882018-03-29 10:34:05 -0400102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williamseab4f8c2024-08-16 15:20:10 -0400105PenaltyBreakTemplateDeclaration: 10
Brad Bishopd1eac882018-03-29 10:34:05 -0400106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamseab4f8c2024-08-16 15:20:10 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams7fe55e92023-10-20 11:18:36 -0500109PointerAlignment: Left
Patrick Williamsc5fe26a2023-05-10 07:50:25 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Brad Bishopd1eac882018-03-29 10:34:05 -0400112ReflowComments: true
Patrick Williamsc5fe26a2023-05-10 07:50:25 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williams7fe55e92023-10-20 11:18:36 -0500115SortIncludes: CaseSensitive
Patrick Venture3d6d3182018-08-31 09:33:09 -0700116SortUsingDeclarations: true
Brad Bishopd1eac882018-03-29 10:34:05 -0400117SpaceAfterCStyleCast: false
George Liu3fe976c2022-06-21 09:37:04 +0800118SpaceAfterTemplateKeyword: true
Brad Bishopd1eac882018-03-29 10:34:05 -0400119SpaceBeforeAssignmentOperators: true
George Liu3fe976c2022-06-21 09:37:04 +0800120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Brad Bishopd1eac882018-03-29 10:34:05 -0400123SpaceBeforeParens: ControlStatements
George Liu3fe976c2022-06-21 09:37:04 +0800124SpaceBeforeRangeBasedForLoopColon: true
Brad Bishopd1eac882018-03-29 10:34:05 -0400125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams7fe55e92023-10-20 11:18:36 -0500127SpacesInAngles: Never
Brad Bishopd1eac882018-03-29 10:34:05 -0400128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
George Liu3fe976c2022-06-21 09:37:04 +0800132Standard: Latest
Brad Bishopd1eac882018-03-29 10:34:05 -0400133TabWidth: 4
134UseTab: Never
135...
Patrick Williamsc5fe26a2023-05-10 07:50:25 -0500136