blob: 706a17ce4baa94aadc7ca3fe76b7516310143f66 [file] [log] [blame]
Ben Tyner6c1c3a12020-01-09 09:17:50 -06001---
Zane Shelleyb82cbf72022-06-27 10:28:06 -05002# Using clang-format-14
3# https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html
Ben Tyner6c1c3a12020-01-09 09:17:50 -06004Language: Cpp
5# BasedOnStyle: LLVM
6AccessModifierOffset: -2
7AlignAfterOpenBracket: Align
Zane Shelleyb82cbf72022-06-27 10:28:06 -05008AlignArrayOfStructures: None
9AlignConsecutiveAssignments: Consecutive
10AlignConsecutiveBitFields: Consecutive
11AlignConsecutiveDeclarations: None
12AlignConsecutiveMacros: None
Ben Tyner6c1c3a12020-01-09 09:17:50 -060013AlignEscapedNewlines: Right
Zane Shelleyb82cbf72022-06-27 10:28:06 -050014AlignOperands: Align
Ben Tyner6c1c3a12020-01-09 09:17:50 -060015AlignTrailingComments: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050016AllowAllArgumentsOnNextLine: true
Ben Tyner6c1c3a12020-01-09 09:17:50 -060017AllowAllParametersOfDeclarationOnNextLine: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050018AllowShortBlocksOnASingleLine: Never
Ben Tyner6c1c3a12020-01-09 09:17:50 -060019AllowShortCaseLabelsOnASingleLine: false
Zane Shelleyb82cbf72022-06-27 10:28:06 -050020AllowShortEnumsOnASingleLine: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060021AllowShortFunctionsOnASingleLine: Empty
Zane Shelleyb82cbf72022-06-27 10:28:06 -050022AllowShortIfStatementsOnASingleLine: Never
23AllowShortLambdasOnASingleLine: All
Ben Tyner6c1c3a12020-01-09 09:17:50 -060024AllowShortLoopsOnASingleLine: false
25AlwaysBreakAfterReturnType: None
26AlwaysBreakBeforeMultilineStrings: false
27AlwaysBreakTemplateDeclarations: Yes
Zane Shelleyb82cbf72022-06-27 10:28:06 -050028AttributeMacros: []
Ben Tyner6c1c3a12020-01-09 09:17:50 -060029BinPackArguments: true
30BinPackParameters: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050031BitFieldColonSpacing: Both
Ben Tyner6c1c3a12020-01-09 09:17:50 -060032BraceWrapping:
Zane Shelleycac5dc62020-06-03 17:09:22 -050033 AfterCaseLabel: true
Ben Tyner6c1c3a12020-01-09 09:17:50 -060034 AfterClass: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050035 AfterControlStatement: Always
Ben Tyner6c1c3a12020-01-09 09:17:50 -060036 AfterEnum: true
37 AfterFunction: true
38 AfterNamespace: true
39 AfterObjCDeclaration: true
40 AfterStruct: true
41 AfterUnion: true
42 AfterExternBlock: true
43 BeforeCatch: true
44 BeforeElse: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050045 BeforeLambdaBody: false
46 BeforeWhile: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060047 IndentBraces: false
48 SplitEmptyFunction: false
49 SplitEmptyRecord: false
50 SplitEmptyNamespace: false
Zane Shelleyb82cbf72022-06-27 10:28:06 -050051BreakAfterJavaFieldAnnotations: true
Ben Tyner6c1c3a12020-01-09 09:17:50 -060052BreakBeforeBinaryOperators: None
53BreakBeforeBraces: Custom
Zane Shelleyb82cbf72022-06-27 10:28:06 -050054BreakBeforeConceptDeclarations: true
Ben Tyner6c1c3a12020-01-09 09:17:50 -060055BreakBeforeTernaryOperators: true
56BreakConstructorInitializers: AfterColon
57BreakInheritanceList: AfterColon
Zane Shelleyb82cbf72022-06-27 10:28:06 -050058BreakStringLiterals: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060059ColumnLimit: 80
60CommentPragmas: '^ IWYU pragma:'
61CompactNamespaces: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060062ConstructorInitializerIndentWidth: 4
63ContinuationIndentWidth: 4
64Cpp11BracedListStyle: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050065DeriveLineEnding: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060066DerivePointerAlignment: false
67PointerAlignment: Left
68DisableFormat: false
Zane Shelleyb82cbf72022-06-27 10:28:06 -050069EmptyLineAfterAccessModifier: Never
70EmptyLineBeforeAccessModifier: Always
Ben Tyner6c1c3a12020-01-09 09:17:50 -060071ExperimentalAutoDetectBinPacking: false
72FixNamespaceComments: true
73ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
Zane Shelleyb82cbf72022-06-27 10:28:06 -050074IfMacros: []
Ben Tyner6c1c3a12020-01-09 09:17:50 -060075IncludeBlocks: Regroup
76IncludeCategories:
77 - Regex: '^[<"](gtest|gmock)'
78 Priority: 7
79 - Regex: '^"config.h"'
80 Priority: -1
81 - Regex: '^".*\.h"'
82 Priority: 1
83 - Regex: '^".*\.hpp"'
84 Priority: 2
85 - Regex: '^<.*\.h>'
86 Priority: 3
87 - Regex: '^<.*\.hpp>'
88 Priority: 4
89 - Regex: '^<.*'
90 Priority: 5
91 - Regex: '.*'
92 Priority: 6
Zane Shelleyb82cbf72022-06-27 10:28:06 -050093IncludeIsMainRegex: ''
94IncludeIsMainSourceRegex: ''
95IndentAccessModifiers: false
96IndentCaseBlocks: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -060097IndentCaseLabels: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -050098IndentExternBlock: NoIndent
99IndentGotoLabels: false
100IndentPPDirectives: None
101IndentRequires: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600102IndentWidth: 4
103IndentWrappedFunctionNames: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500104InsertTrailingCommas: None
105JavaImportGroups: []
106JavaScriptQuotes: Leave
107JavaScriptWrapImports: true
108KeepEmptyLinesAtTheStartOfBlocks: false
109LambdaBodyIndentation: Signature
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600110MacroBlockBegin: ''
111MacroBlockEnd: ''
112MaxEmptyLinesToKeep: 1
113NamespaceIndentation: None
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500114NamespaceMacros: []
115ObjCBinPackProtocolList: Auto
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600116ObjCBlockIndentWidth: 2
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500117ObjCBreakBeforeNestedBlockParam: true
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600118ObjCSpaceAfterProperty: false
119ObjCSpaceBeforeProtocolList: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500120PPIndentWidth: -1
121PackConstructorInitializers: BinPack
122PenaltyBreakAssignment: 2
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600123PenaltyBreakBeforeFirstCallParameter: 19
124PenaltyBreakComment: 300
125PenaltyBreakFirstLessLess: 120
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500126PenaltyBreakOpenParenthesis: 0
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600127PenaltyBreakString: 1000
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500128PenaltyBreakTemplateDeclaration: 10
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600129PenaltyExcessCharacter: 1000000
130PenaltyReturnTypeOnItsOwnLine: 60
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500131PenaltyIndentedWhitespace: 0
132QualifierAlignment: Leave
133# Only used when QualifierAlignment is 'Custom'
134# QualifierOrder: []
135RawStringFormats: []
136ReferenceAlignment: Pointer
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600137ReflowComments: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500138RemoveBracesLLVM: false
139SeparateDefinitionBlocks: Leave
140ShortNamespaceLines: 1
141SortIncludes: CaseSensitive
142SortJavaStaticImport: Before
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600143SortUsingDeclarations: true
144SpaceAfterCStyleCast: false
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500145SpaceAfterLogicalNot: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600146SpaceAfterTemplateKeyword: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500147SpaceAroundPointerQualifiers: Default
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600148SpaceBeforeAssignmentOperators: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500149SpaceBeforeCaseColon: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600150SpaceBeforeCpp11BracedList: false
151SpaceBeforeCtorInitializerColon: true
152SpaceBeforeInheritanceColon: true
153SpaceBeforeParens: ControlStatements
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500154SpaceBeforeParensOptions:
155 AfterControlStatements: true
156 AfterForeachMacros: true
157 AfterFunctionDefinitionName: false
158 AfterFunctionDeclarationName: false
159 AfterIfMacros: true
160 AfterOverloadedOperator: false
161 BeforeNonEmptyParentheses: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600162SpaceBeforeRangeBasedForLoopColon: true
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500163SpaceBeforeSquareBrackets: false
164SpaceInEmptyBlock: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600165SpaceInEmptyParentheses: false
166SpacesBeforeTrailingComments: 1
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500167SpacesInAngles: Never
168SpacesInConditionalStatement: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600169SpacesInContainerLiterals: true
170SpacesInCStyleCastParentheses: false
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500171SpacesInLineCommentPrefix:
172 Minimum: 1
173 Maximum: -1
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600174SpacesInParentheses: false
175SpacesInSquareBrackets: false
Zane Shelleycac5dc62020-06-03 17:09:22 -0500176Standard: Latest
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500177StatementAttributeLikeMacros: []
178StatementMacros: []
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600179TabWidth: 4
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500180TypenameMacros: []
181UseCRLF: false
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600182UseTab: Never
Zane Shelleyb82cbf72022-06-27 10:28:06 -0500183WhitespaceSensitiveMacros:
184 - STRINGIZE
185 - PP_STRINGIZE
186 - BOOST_PP_STRINGIZE
187 - NS_SWIFT_NAME
188 - CF_SWIFT_NAME
Ben Tyner6c1c3a12020-01-09 09:17:50 -0600189...
190