blob: a75a2c266137ca6c7017f3d8710a60d81c5aa7ee [file] [log] [blame]
Tony Lee84d430c2019-06-13 15:26:15 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
Patrick Williams7da98582023-05-10 07:50:46 -05008AlignEscapedNewlines: Right
9AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Tony Lee84d430c2019-06-13 15:26:15 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williams7da98582023-05-10 07:50:46 -050014AllowShortBlocksOnASingleLine: Empty
Tony Lee84d430c2019-06-13 15:26:15 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williams7da98582023-05-10 07:50:46 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williamsab6d79b2023-10-20 11:19:05 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Tony Lee84d430c2019-06-13 15:26:15 +080019AllowShortLoopsOnASingleLine: false
Tony Lee84d430c2019-06-13 15:26:15 +080020AlwaysBreakBeforeMultilineStrings: false
Tony Lee84d430c2019-06-13 15:26:15 +080021BinPackArguments: true
22BinPackParameters: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050023BitFieldColonSpacing: None
Tony Lee84d430c2019-06-13 15:26:15 +080024BraceWrapping:
Patrick Williams7da98582023-05-10 07:50:46 -050025 AfterCaseLabel: true
Tony Lee84d430c2019-06-13 15:26:15 +080026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050029 AfterExternBlock: true
Tony Lee84d430c2019-06-13 15:26:15 +080030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Tony Lee84d430c2019-06-13 15:26:15 +080039 IndentBraces: false
Patrick Williams7da98582023-05-10 07:50:46 -050040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
43BreakAfterAttributes: Never
Patrick Williams58f0f852024-12-18 11:21:20 -050044BreakAfterReturnType: Automatic
Tony Lee84d430c2019-06-13 15:26:15 +080045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
Patrick Williams7da98582023-05-10 07:50:46 -050049BreakInheritanceList: AfterColon
50BreakStringLiterals: false
Patrick Williams58f0f852024-12-18 11:21:20 -050051BreakTemplateDeclarations: Yes
Tony Lee84d430c2019-06-13 15:26:15 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
Patrick Williams7da98582023-05-10 07:50:46 -050054CompactNamespaces: false
Tony Lee84d430c2019-06-13 15:26:15 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
59DisableFormat: false
Tony Lee84d430c2019-06-13 15:26:15 +080060FixNamespaceComments: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Tony Lee84d430c2019-06-13 15:26:15 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
Patrick Williams7da98582023-05-10 07:50:46 -050068 Priority: 7
Tony Lee84d430c2019-06-13 15:26:15 +080069 - Regex: '^"config.h"'
70 Priority: -1
Patrick Williams7da98582023-05-10 07:50:46 -050071 - Regex: '^".*\.h"'
Tony Lee84d430c2019-06-13 15:26:15 +080072 Priority: 1
Patrick Williams7da98582023-05-10 07:50:46 -050073 - Regex: '^".*\.hpp"'
Tony Lee84d430c2019-06-13 15:26:15 +080074 Priority: 2
Patrick Williams7da98582023-05-10 07:50:46 -050075 - Regex: '^<.*\.h>'
Tony Lee84d430c2019-06-13 15:26:15 +080076 Priority: 3
Patrick Williams7da98582023-05-10 07:50:46 -050077 - Regex: '^<.*\.hpp>'
Tony Lee84d430c2019-06-13 15:26:15 +080078 Priority: 4
Patrick Williams7da98582023-05-10 07:50:46 -050079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Tony Lee84d430c2019-06-13 15:26:15 +080083IndentCaseLabels: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050084IndentExternBlock: NoIndent
Patrick Williams7da98582023-05-10 07:50:46 -050085IndentRequiresClause: true
Tony Lee84d430c2019-06-13 15:26:15 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williams7da98582023-05-10 07:50:46 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
Patrick Williamsf89f1532024-08-16 15:20:48 -040090LambdaBodyIndentation: Signature
Patrick Williams7da98582023-05-10 07:50:46 -050091LineEnding: LF
Tony Lee84d430c2019-06-13 15:26:15 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050099PackConstructorInitializers: BinPack
Patrick Williams7da98582023-05-10 07:50:46 -0500100PenaltyBreakAssignment: 25
Patrick Williamsf89f1532024-08-16 15:20:48 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Tony Lee84d430c2019-06-13 15:26:15 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williamsf89f1532024-08-16 15:20:48 -0400105PenaltyBreakTemplateDeclaration: 10
Tony Lee84d430c2019-06-13 15:26:15 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsf89f1532024-08-16 15:20:48 -0400108PenaltyIndentedWhitespace: 1
Patrick Williamsab6d79b2023-10-20 11:19:05 -0500109PointerAlignment: Left
Patrick Williams7da98582023-05-10 07:50:46 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Tony Lee84d430c2019-06-13 15:26:15 +0800112ReflowComments: true
Patrick Williams7da98582023-05-10 07:50:46 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williamsab6d79b2023-10-20 11:19:05 -0500115SortIncludes: CaseSensitive
Tony Lee84d430c2019-06-13 15:26:15 +0800116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
Patrick Williams7da98582023-05-10 07:50:46 -0500118SpaceAfterTemplateKeyword: true
Tony Lee84d430c2019-06-13 15:26:15 +0800119SpaceBeforeAssignmentOperators: true
Patrick Williams7da98582023-05-10 07:50:46 -0500120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Tony Lee84d430c2019-06-13 15:26:15 +0800123SpaceBeforeParens: ControlStatements
Patrick Williams7da98582023-05-10 07:50:46 -0500124SpaceBeforeRangeBasedForLoopColon: true
Tony Lee84d430c2019-06-13 15:26:15 +0800125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williamsab6d79b2023-10-20 11:19:05 -0500127SpacesInAngles: Never
Tony Lee84d430c2019-06-13 15:26:15 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
Patrick Williams7da98582023-05-10 07:50:46 -0500132Standard: Latest
Tony Lee84d430c2019-06-13 15:26:15 +0800133TabWidth: 4
134UseTab: Never
135...
Patrick Williams7da98582023-05-10 07:50:46 -0500136