blob: 5f0cb0956f27c11976912f95fa03b05d7cf1e142 [file] [log] [blame]
Kuiying Wang3a044402019-02-19 15:00:11 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
Jonathan Domaneddf9602022-11-23 09:29:41 -08008AlignEscapedNewlines: Right
9AlignOperands: Align
Kuiying Wang3a044402019-02-19 15:00:11 +080010AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080012AllowShortBlocksOnASingleLine: Empty
Kuiying Wang3a044402019-02-19 15:00:11 +080013AllowShortCaseLabelsOnASingleLine: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080014AllowShortFunctionsOnASingleLine: Empty
Kuiying Wang3a044402019-02-19 15:00:11 +080015AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
Kuiying Wang3a044402019-02-19 15:00:11 +080017AlwaysBreakAfterReturnType: None
18AlwaysBreakBeforeMultilineStrings: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080019AlwaysBreakTemplateDeclarations: Yes
Kuiying Wang3a044402019-02-19 15:00:11 +080020BinPackArguments: true
21BinPackParameters: true
22BraceWrapping:
Jonathan Domaneddf9602022-11-23 09:29:41 -080023 AfterCaseLabel: true
Kuiying Wang3a044402019-02-19 15:00:11 +080024 AfterClass: true
25 AfterControlStatement: true
26 AfterEnum: true
27 AfterFunction: true
28 AfterNamespace: true
29 AfterObjCDeclaration: true
30 AfterStruct: true
31 AfterUnion: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080032 AfterExternBlock: true
Kuiying Wang3a044402019-02-19 15:00:11 +080033 BeforeCatch: true
34 BeforeElse: true
35 IndentBraces: false
Jonathan Domaneddf9602022-11-23 09:29:41 -080036 SplitEmptyFunction: false
37 SplitEmptyRecord: false
38 SplitEmptyNamespace: false
Kuiying Wang3a044402019-02-19 15:00:11 +080039BreakBeforeBinaryOperators: None
40BreakBeforeBraces: Custom
41BreakBeforeTernaryOperators: true
42BreakConstructorInitializers: AfterColon
Jonathan Domaneddf9602022-11-23 09:29:41 -080043BreakInheritanceList: AfterColon
44BreakStringLiterals: false
Kuiying Wang3a044402019-02-19 15:00:11 +080045ColumnLimit: 80
46CommentPragmas: '^ IWYU pragma:'
Jonathan Domaneddf9602022-11-23 09:29:41 -080047CompactNamespaces: false
Kuiying Wang3a044402019-02-19 15:00:11 +080048ConstructorInitializerAllOnOneLineOrOnePerLine: false
49ConstructorInitializerIndentWidth: 4
50ContinuationIndentWidth: 4
51Cpp11BracedListStyle: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080052DeriveLineEnding: false
53DerivePointerAlignment: false
Kuiying Wang3a044402019-02-19 15:00:11 +080054PointerAlignment: Left
55DisableFormat: false
56ExperimentalAutoDetectBinPacking: false
57FixNamespaceComments: true
58ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
59IncludeBlocks: Regroup
60IncludeCategories:
61 - Regex: '^[<"](gtest|gmock)'
Jonathan Domaneddf9602022-11-23 09:29:41 -080062 Priority: 7
Kuiying Wang3a044402019-02-19 15:00:11 +080063 - Regex: '^"config.h"'
64 Priority: -1
Jonathan Domaneddf9602022-11-23 09:29:41 -080065 - Regex: '^".*\.h"'
Kuiying Wang3a044402019-02-19 15:00:11 +080066 Priority: 1
Jonathan Domaneddf9602022-11-23 09:29:41 -080067 - Regex: '^".*\.hpp"'
Kuiying Wang3a044402019-02-19 15:00:11 +080068 Priority: 2
Jonathan Domaneddf9602022-11-23 09:29:41 -080069 - Regex: '^<.*\.h>'
Kuiying Wang3a044402019-02-19 15:00:11 +080070 Priority: 3
Jonathan Domaneddf9602022-11-23 09:29:41 -080071 - Regex: '^<.*\.hpp>'
Kuiying Wang3a044402019-02-19 15:00:11 +080072 Priority: 4
Jonathan Domaneddf9602022-11-23 09:29:41 -080073 - Regex: '^<.*'
74 Priority: 5
75 - Regex: '.*'
76 Priority: 6
Kuiying Wang3a044402019-02-19 15:00:11 +080077IndentCaseLabels: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080078IndentRequiresClause: true
Kuiying Wang3a044402019-02-19 15:00:11 +080079IndentWidth: 4
80IndentWrappedFunctionNames: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080081KeepEmptyLinesAtTheStartOfBlocks: false
Kuiying Wang3a044402019-02-19 15:00:11 +080082MacroBlockBegin: ''
83MacroBlockEnd: ''
84MaxEmptyLinesToKeep: 1
85NamespaceIndentation: None
86ObjCBlockIndentWidth: 2
87ObjCSpaceAfterProperty: false
88ObjCSpaceBeforeProtocolList: true
Jonathan Domaneddf9602022-11-23 09:29:41 -080089PenaltyBreakAssignment: 25
Kuiying Wang3a044402019-02-19 15:00:11 +080090PenaltyBreakBeforeFirstCallParameter: 19
91PenaltyBreakComment: 300
92PenaltyBreakFirstLessLess: 120
93PenaltyBreakString: 1000
94PenaltyExcessCharacter: 1000000
95PenaltyReturnTypeOnItsOwnLine: 60
Jonathan Domaneddf9602022-11-23 09:29:41 -080096PenaltyIndentedWhitespace: 0
97QualifierAlignment: Left
98ReferenceAlignment: Left
Kuiying Wang3a044402019-02-19 15:00:11 +080099ReflowComments: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800100RequiresClausePosition: OwnLine
Kuiying Wang3a044402019-02-19 15:00:11 +0800101SortIncludes: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800102SortUsingDeclarations: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800103SpaceAfterCStyleCast: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800104SpaceAfterTemplateKeyword: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800105SpaceBeforeAssignmentOperators: true
Jonathan Domaneddf9602022-11-23 09:29:41 -0800106SpaceBeforeCpp11BracedList: false
107SpaceBeforeCtorInitializerColon: true
108SpaceBeforeInheritanceColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800109SpaceBeforeParens: ControlStatements
Jonathan Domaneddf9602022-11-23 09:29:41 -0800110SpaceBeforeRangeBasedForLoopColon: true
Kuiying Wang3a044402019-02-19 15:00:11 +0800111SpaceInEmptyParentheses: false
112SpacesBeforeTrailingComments: 1
113SpacesInAngles: false
114SpacesInContainerLiterals: true
115SpacesInCStyleCastParentheses: false
116SpacesInParentheses: false
117SpacesInSquareBrackets: false
Jonathan Domaneddf9602022-11-23 09:29:41 -0800118Standard: Latest
Kuiying Wang3a044402019-02-19 15:00:11 +0800119TabWidth: 4
Jonathan Domaneddf9602022-11-23 09:29:41 -0800120UseCRLF: false
Kuiying Wang3a044402019-02-19 15:00:11 +0800121UseTab: Never
122...
Jonathan Domaneddf9602022-11-23 09:29:41 -0800123