blob: d92a3f10a47b602bb47e3844ce15ebcf7fb92bbb [file] [log] [blame]
Will Lianga1d42022019-06-13 14:17:12 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
Patrick Williams527190b2023-05-10 07:51:28 -05008AlignEscapedNewlines: Right
9AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Will Lianga1d42022019-06-13 14:17:12 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williams527190b2023-05-10 07:51:28 -050014AllowShortBlocksOnASingleLine: Empty
Will Lianga1d42022019-06-13 14:17:12 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williams527190b2023-05-10 07:51:28 -050016AllowShortFunctionsOnASingleLine: Empty
Will Lianga1d42022019-06-13 14:17:12 +080017AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
Will Lianga1d42022019-06-13 14:17:12 +080019AlwaysBreakAfterReturnType: None
20AlwaysBreakBeforeMultilineStrings: false
Patrick Williams527190b2023-05-10 07:51:28 -050021AlwaysBreakTemplateDeclarations: Yes
Will Lianga1d42022019-06-13 14:17:12 +080022BinPackArguments: true
23BinPackParameters: true
24BraceWrapping:
Patrick Williams527190b2023-05-10 07:51:28 -050025 AfterCaseLabel: true
Will Lianga1d42022019-06-13 14:17:12 +080026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
29 AfterFunction: true
30 AfterNamespace: true
31 AfterObjCDeclaration: true
32 AfterStruct: true
33 AfterUnion: true
Patrick Williams527190b2023-05-10 07:51:28 -050034 AfterExternBlock: true
Will Lianga1d42022019-06-13 14:17:12 +080035 BeforeCatch: true
36 BeforeElse: true
37 IndentBraces: false
Patrick Williams527190b2023-05-10 07:51:28 -050038 SplitEmptyFunction: false
39 SplitEmptyRecord: false
40 SplitEmptyNamespace: false
41BreakAfterAttributes: Never
Will Lianga1d42022019-06-13 14:17:12 +080042BreakBeforeBinaryOperators: None
43BreakBeforeBraces: Custom
44BreakBeforeTernaryOperators: true
45BreakConstructorInitializers: AfterColon
Patrick Williams527190b2023-05-10 07:51:28 -050046BreakInheritanceList: AfterColon
47BreakStringLiterals: false
Will Lianga1d42022019-06-13 14:17:12 +080048ColumnLimit: 80
49CommentPragmas: '^ IWYU pragma:'
Patrick Williams527190b2023-05-10 07:51:28 -050050CompactNamespaces: false
Will Lianga1d42022019-06-13 14:17:12 +080051ConstructorInitializerAllOnOneLineOrOnePerLine: false
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54Cpp11BracedListStyle: true
Patrick Williams527190b2023-05-10 07:51:28 -050055DeriveLineEnding: false
Will Lianga1d42022019-06-13 14:17:12 +080056DerivePointerAlignment: false
57PointerAlignment: Left
58DisableFormat: false
59ExperimentalAutoDetectBinPacking: false
60FixNamespaceComments: true
61ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
62IncludeBlocks: Regroup
63IncludeCategories:
64 - Regex: '^[<"](gtest|gmock)'
Patrick Williams527190b2023-05-10 07:51:28 -050065 Priority: 7
Will Lianga1d42022019-06-13 14:17:12 +080066 - Regex: '^"config.h"'
67 Priority: -1
Patrick Williams527190b2023-05-10 07:51:28 -050068 - Regex: '^".*\.h"'
Will Lianga1d42022019-06-13 14:17:12 +080069 Priority: 1
Patrick Williams527190b2023-05-10 07:51:28 -050070 - Regex: '^".*\.hpp"'
Will Lianga1d42022019-06-13 14:17:12 +080071 Priority: 2
Patrick Williams527190b2023-05-10 07:51:28 -050072 - Regex: '^<.*\.h>'
Will Lianga1d42022019-06-13 14:17:12 +080073 Priority: 3
Patrick Williams527190b2023-05-10 07:51:28 -050074 - Regex: '^<.*\.hpp>'
Will Lianga1d42022019-06-13 14:17:12 +080075 Priority: 4
Patrick Williams527190b2023-05-10 07:51:28 -050076 - Regex: '^<.*'
77 Priority: 5
78 - Regex: '.*'
79 Priority: 6
Will Lianga1d42022019-06-13 14:17:12 +080080IndentCaseLabels: true
Patrick Williams527190b2023-05-10 07:51:28 -050081IndentRequiresClause: true
Will Lianga1d42022019-06-13 14:17:12 +080082IndentWidth: 4
83IndentWrappedFunctionNames: true
Patrick Williams527190b2023-05-10 07:51:28 -050084InsertNewlineAtEOF: true
85KeepEmptyLinesAtTheStartOfBlocks: false
86LambdaBodyIndentation: OuterScope
87LineEnding: LF
Will Lianga1d42022019-06-13 14:17:12 +080088MacroBlockBegin: ''
89MacroBlockEnd: ''
90MaxEmptyLinesToKeep: 1
91NamespaceIndentation: None
92ObjCBlockIndentWidth: 2
93ObjCSpaceAfterProperty: false
94ObjCSpaceBeforeProtocolList: true
Patrick Williams527190b2023-05-10 07:51:28 -050095PenaltyBreakAssignment: 25
Will Lianga1d42022019-06-13 14:17:12 +080096PenaltyBreakBeforeFirstCallParameter: 19
97PenaltyBreakComment: 300
98PenaltyBreakFirstLessLess: 120
99PenaltyBreakString: 1000
100PenaltyExcessCharacter: 1000000
101PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams527190b2023-05-10 07:51:28 -0500102PenaltyIndentedWhitespace: 0
103QualifierAlignment: Left
104ReferenceAlignment: Left
Will Lianga1d42022019-06-13 14:17:12 +0800105ReflowComments: true
Patrick Williams527190b2023-05-10 07:51:28 -0500106RequiresClausePosition: OwnLine
107RequiresExpressionIndentation: Keyword
Will Lianga1d42022019-06-13 14:17:12 +0800108SortIncludes: true
109SortUsingDeclarations: true
110SpaceAfterCStyleCast: false
Patrick Williams527190b2023-05-10 07:51:28 -0500111SpaceAfterTemplateKeyword: true
Will Lianga1d42022019-06-13 14:17:12 +0800112SpaceBeforeAssignmentOperators: true
Patrick Williams527190b2023-05-10 07:51:28 -0500113SpaceBeforeCpp11BracedList: false
114SpaceBeforeCtorInitializerColon: true
115SpaceBeforeInheritanceColon: true
Will Lianga1d42022019-06-13 14:17:12 +0800116SpaceBeforeParens: ControlStatements
Patrick Williams527190b2023-05-10 07:51:28 -0500117SpaceBeforeRangeBasedForLoopColon: true
Will Lianga1d42022019-06-13 14:17:12 +0800118SpaceInEmptyParentheses: false
119SpacesBeforeTrailingComments: 1
120SpacesInAngles: false
121SpacesInContainerLiterals: true
122SpacesInCStyleCastParentheses: false
123SpacesInParentheses: false
124SpacesInSquareBrackets: false
Patrick Williams527190b2023-05-10 07:51:28 -0500125Standard: Latest
Will Lianga1d42022019-06-13 14:17:12 +0800126TabWidth: 4
127UseTab: Never
128...
129