blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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 -040020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
George Liu3fe976c2022-06-21 09:37:04 +080022AlwaysBreakTemplateDeclarations: Yes
Brad Bishopd1eac882018-03-29 10:34:05 -040023BinPackArguments: true
24BinPackParameters: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050025BitFieldColonSpacing: None
Brad Bishopd1eac882018-03-29 10:34:05 -040026BraceWrapping:
George Liu3fe976c2022-06-21 09:37:04 +080027 AfterCaseLabel: true
Brad Bishopd1eac882018-03-29 10:34:05 -040028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050031 AfterExternBlock: true
Brad Bishopd1eac882018-03-29 10:34:05 -040032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williams7fe55e92023-10-20 11:18:36 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Brad Bishopd1eac882018-03-29 10:34:05 -040041 IndentBraces: false
George Liu3fe976c2022-06-21 09:37:04 +080042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williamsc5fe26a2023-05-10 07:50:25 -050045BreakAfterAttributes: Never
Brad Bishopd1eac882018-03-29 10:34:05 -040046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
George Liu3fe976c2022-06-21 09:37:04 +080050BreakInheritanceList: AfterColon
51BreakStringLiterals: false
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