blob: 28e3328699128f61f3c477bf0baeaec13e4ba107 [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 +080020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
Patrick Williams7da98582023-05-10 07:50:46 -050022AlwaysBreakTemplateDeclarations: Yes
Tony Lee84d430c2019-06-13 15:26:15 +080023BinPackArguments: true
24BinPackParameters: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050025BitFieldColonSpacing: None
Tony Lee84d430c2019-06-13 15:26:15 +080026BraceWrapping:
Patrick Williams7da98582023-05-10 07:50:46 -050027 AfterCaseLabel: true
Tony Lee84d430c2019-06-13 15:26:15 +080028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050031 AfterExternBlock: true
Tony Lee84d430c2019-06-13 15:26:15 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williamsab6d79b2023-10-20 11:19:05 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Tony Lee84d430c2019-06-13 15:26:15 +080041 IndentBraces: false
Patrick Williams7da98582023-05-10 07:50:46 -050042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
45BreakAfterAttributes: Never
Tony Lee84d430c2019-06-13 15:26:15 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
Patrick Williams7da98582023-05-10 07:50:46 -050050BreakInheritanceList: AfterColon
51BreakStringLiterals: false
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