blob: 706a17ce4baa94aadc7ca3fe76b7516310143f66 [file] [log] [blame]
Zane Shelleydd156ad2019-10-25 20:59:55 -05001---
Zane Shelley5d02cc22022-06-27 10:37:36 -05002# Using clang-format-14
3# https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html
Zane Shelleydd156ad2019-10-25 20:59:55 -05004Language: Cpp
5# BasedOnStyle: LLVM
6AccessModifierOffset: -2
7AlignAfterOpenBracket: Align
Zane Shelley5d02cc22022-06-27 10:37:36 -05008AlignArrayOfStructures: None
9AlignConsecutiveAssignments: Consecutive
10AlignConsecutiveBitFields: Consecutive
11AlignConsecutiveDeclarations: None
12AlignConsecutiveMacros: None
Zane Shelleydd156ad2019-10-25 20:59:55 -050013AlignEscapedNewlines: Right
Zane Shelley5d02cc22022-06-27 10:37:36 -050014AlignOperands: Align
Zane Shelleydd156ad2019-10-25 20:59:55 -050015AlignTrailingComments: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050016AllowAllArgumentsOnNextLine: true
Zane Shelleydd156ad2019-10-25 20:59:55 -050017AllowAllParametersOfDeclarationOnNextLine: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050018AllowShortBlocksOnASingleLine: Never
Zane Shelleydd156ad2019-10-25 20:59:55 -050019AllowShortCaseLabelsOnASingleLine: false
Zane Shelley5d02cc22022-06-27 10:37:36 -050020AllowShortEnumsOnASingleLine: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050021AllowShortFunctionsOnASingleLine: Empty
Zane Shelley5d02cc22022-06-27 10:37:36 -050022AllowShortIfStatementsOnASingleLine: Never
23AllowShortLambdasOnASingleLine: All
Zane Shelleydd156ad2019-10-25 20:59:55 -050024AllowShortLoopsOnASingleLine: false
25AlwaysBreakAfterReturnType: None
26AlwaysBreakBeforeMultilineStrings: false
27AlwaysBreakTemplateDeclarations: Yes
Zane Shelley5d02cc22022-06-27 10:37:36 -050028AttributeMacros: []
Zane Shelleydd156ad2019-10-25 20:59:55 -050029BinPackArguments: true
30BinPackParameters: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050031BitFieldColonSpacing: Both
Zane Shelleydd156ad2019-10-25 20:59:55 -050032BraceWrapping:
Zane Shelley55afd632020-06-03 17:06:30 -050033 AfterCaseLabel: true
Zane Shelleydd156ad2019-10-25 20:59:55 -050034 AfterClass: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050035 AfterControlStatement: Always
Zane Shelleydd156ad2019-10-25 20:59:55 -050036 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 Shelley5d02cc22022-06-27 10:37:36 -050045 BeforeLambdaBody: false
46 BeforeWhile: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050047 IndentBraces: false
48 SplitEmptyFunction: false
49 SplitEmptyRecord: false
50 SplitEmptyNamespace: false
Zane Shelley5d02cc22022-06-27 10:37:36 -050051BreakAfterJavaFieldAnnotations: true
Zane Shelleydd156ad2019-10-25 20:59:55 -050052BreakBeforeBinaryOperators: None
53BreakBeforeBraces: Custom
Zane Shelley5d02cc22022-06-27 10:37:36 -050054BreakBeforeConceptDeclarations: true
Zane Shelleydd156ad2019-10-25 20:59:55 -050055BreakBeforeTernaryOperators: true
56BreakConstructorInitializers: AfterColon
57BreakInheritanceList: AfterColon
Zane Shelley5d02cc22022-06-27 10:37:36 -050058BreakStringLiterals: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050059ColumnLimit: 80
60CommentPragmas: '^ IWYU pragma:'
61CompactNamespaces: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050062ConstructorInitializerIndentWidth: 4
63ContinuationIndentWidth: 4
64Cpp11BracedListStyle: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050065DeriveLineEnding: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050066DerivePointerAlignment: false
67PointerAlignment: Left
68DisableFormat: false
Zane Shelley5d02cc22022-06-27 10:37:36 -050069EmptyLineAfterAccessModifier: Never
70EmptyLineBeforeAccessModifier: Always
Zane Shelleydd156ad2019-10-25 20:59:55 -050071ExperimentalAutoDetectBinPacking: false
72FixNamespaceComments: true
73ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
Zane Shelley5d02cc22022-06-27 10:37:36 -050074IfMacros: []
Zane Shelleydd156ad2019-10-25 20:59:55 -050075IncludeBlocks: 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 Shelley5d02cc22022-06-27 10:37:36 -050093IncludeIsMainRegex: ''
94IncludeIsMainSourceRegex: ''
95IndentAccessModifiers: false
96IndentCaseBlocks: false
Zane Shelleydd156ad2019-10-25 20:59:55 -050097IndentCaseLabels: true
Zane Shelley5d02cc22022-06-27 10:37:36 -050098IndentExternBlock: NoIndent
99IndentGotoLabels: false
100IndentPPDirectives: None
101IndentRequires: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500102IndentWidth: 4
103IndentWrappedFunctionNames: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500104InsertTrailingCommas: None
105JavaImportGroups: []
106JavaScriptQuotes: Leave
107JavaScriptWrapImports: true
108KeepEmptyLinesAtTheStartOfBlocks: false
109LambdaBodyIndentation: Signature
Zane Shelleydd156ad2019-10-25 20:59:55 -0500110MacroBlockBegin: ''
111MacroBlockEnd: ''
112MaxEmptyLinesToKeep: 1
113NamespaceIndentation: None
Zane Shelley5d02cc22022-06-27 10:37:36 -0500114NamespaceMacros: []
115ObjCBinPackProtocolList: Auto
Zane Shelleydd156ad2019-10-25 20:59:55 -0500116ObjCBlockIndentWidth: 2
Zane Shelley5d02cc22022-06-27 10:37:36 -0500117ObjCBreakBeforeNestedBlockParam: true
Zane Shelleydd156ad2019-10-25 20:59:55 -0500118ObjCSpaceAfterProperty: false
119ObjCSpaceBeforeProtocolList: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500120PPIndentWidth: -1
121PackConstructorInitializers: BinPack
122PenaltyBreakAssignment: 2
Zane Shelleydd156ad2019-10-25 20:59:55 -0500123PenaltyBreakBeforeFirstCallParameter: 19
124PenaltyBreakComment: 300
125PenaltyBreakFirstLessLess: 120
Zane Shelley5d02cc22022-06-27 10:37:36 -0500126PenaltyBreakOpenParenthesis: 0
Zane Shelleydd156ad2019-10-25 20:59:55 -0500127PenaltyBreakString: 1000
Zane Shelley5d02cc22022-06-27 10:37:36 -0500128PenaltyBreakTemplateDeclaration: 10
Zane Shelleydd156ad2019-10-25 20:59:55 -0500129PenaltyExcessCharacter: 1000000
130PenaltyReturnTypeOnItsOwnLine: 60
Zane Shelley5d02cc22022-06-27 10:37:36 -0500131PenaltyIndentedWhitespace: 0
132QualifierAlignment: Leave
133# Only used when QualifierAlignment is 'Custom'
134# QualifierOrder: []
135RawStringFormats: []
136ReferenceAlignment: Pointer
Zane Shelleydd156ad2019-10-25 20:59:55 -0500137ReflowComments: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500138RemoveBracesLLVM: false
139SeparateDefinitionBlocks: Leave
140ShortNamespaceLines: 1
141SortIncludes: CaseSensitive
142SortJavaStaticImport: Before
Zane Shelleydd156ad2019-10-25 20:59:55 -0500143SortUsingDeclarations: true
144SpaceAfterCStyleCast: false
Zane Shelley5d02cc22022-06-27 10:37:36 -0500145SpaceAfterLogicalNot: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500146SpaceAfterTemplateKeyword: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500147SpaceAroundPointerQualifiers: Default
Zane Shelleydd156ad2019-10-25 20:59:55 -0500148SpaceBeforeAssignmentOperators: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500149SpaceBeforeCaseColon: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500150SpaceBeforeCpp11BracedList: false
151SpaceBeforeCtorInitializerColon: true
152SpaceBeforeInheritanceColon: true
153SpaceBeforeParens: ControlStatements
Zane Shelley5d02cc22022-06-27 10:37:36 -0500154SpaceBeforeParensOptions:
155 AfterControlStatements: true
156 AfterForeachMacros: true
157 AfterFunctionDefinitionName: false
158 AfterFunctionDeclarationName: false
159 AfterIfMacros: true
160 AfterOverloadedOperator: false
161 BeforeNonEmptyParentheses: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500162SpaceBeforeRangeBasedForLoopColon: true
Zane Shelley5d02cc22022-06-27 10:37:36 -0500163SpaceBeforeSquareBrackets: false
164SpaceInEmptyBlock: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500165SpaceInEmptyParentheses: false
166SpacesBeforeTrailingComments: 1
Zane Shelley5d02cc22022-06-27 10:37:36 -0500167SpacesInAngles: Never
168SpacesInConditionalStatement: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500169SpacesInContainerLiterals: true
170SpacesInCStyleCastParentheses: false
Zane Shelley5d02cc22022-06-27 10:37:36 -0500171SpacesInLineCommentPrefix:
172 Minimum: 1
173 Maximum: -1
Zane Shelleydd156ad2019-10-25 20:59:55 -0500174SpacesInParentheses: false
175SpacesInSquareBrackets: false
Zane Shelley55afd632020-06-03 17:06:30 -0500176Standard: Latest
Zane Shelley5d02cc22022-06-27 10:37:36 -0500177StatementAttributeLikeMacros: []
178StatementMacros: []
Zane Shelleydd156ad2019-10-25 20:59:55 -0500179TabWidth: 4
Zane Shelley5d02cc22022-06-27 10:37:36 -0500180TypenameMacros: []
181UseCRLF: false
Zane Shelleydd156ad2019-10-25 20:59:55 -0500182UseTab: Never
Zane Shelley5d02cc22022-06-27 10:37:36 -0500183WhitespaceSensitiveMacros:
184 - STRINGIZE
185 - PP_STRINGIZE
186 - BOOST_PP_STRINGIZE
187 - NS_SWIFT_NAME
188 - CF_SWIFT_NAME
Zane Shelleydd156ad2019-10-25 20:59:55 -0500189...
190