Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 1 | --- |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 2 | # Using clang-format-14 |
| 3 | # https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 4 | Language: Cpp |
| 5 | # BasedOnStyle: LLVM |
| 6 | AccessModifierOffset: -2 |
| 7 | AlignAfterOpenBracket: Align |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 8 | AlignArrayOfStructures: None |
| 9 | AlignConsecutiveAssignments: Consecutive |
| 10 | AlignConsecutiveBitFields: Consecutive |
| 11 | AlignConsecutiveDeclarations: None |
| 12 | AlignConsecutiveMacros: None |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 13 | AlignEscapedNewlines: Right |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 14 | AlignOperands: Align |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 15 | AlignTrailingComments: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 16 | AllowAllArgumentsOnNextLine: true |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 17 | AllowAllParametersOfDeclarationOnNextLine: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 18 | AllowShortBlocksOnASingleLine: Never |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 19 | AllowShortCaseLabelsOnASingleLine: false |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 20 | AllowShortEnumsOnASingleLine: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 21 | AllowShortFunctionsOnASingleLine: Empty |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 22 | AllowShortIfStatementsOnASingleLine: Never |
| 23 | AllowShortLambdasOnASingleLine: All |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 24 | AllowShortLoopsOnASingleLine: false |
| 25 | AlwaysBreakAfterReturnType: None |
| 26 | AlwaysBreakBeforeMultilineStrings: false |
| 27 | AlwaysBreakTemplateDeclarations: Yes |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 28 | AttributeMacros: [] |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 29 | BinPackArguments: true |
| 30 | BinPackParameters: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 31 | BitFieldColonSpacing: Both |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 32 | BraceWrapping: |
Zane Shelley | cac5dc6 | 2020-06-03 17:09:22 -0500 | [diff] [blame] | 33 | AfterCaseLabel: true |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 34 | AfterClass: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 35 | AfterControlStatement: Always |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 36 | 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 Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 45 | BeforeLambdaBody: false |
| 46 | BeforeWhile: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 47 | IndentBraces: false |
| 48 | SplitEmptyFunction: false |
| 49 | SplitEmptyRecord: false |
| 50 | SplitEmptyNamespace: false |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 51 | BreakAfterJavaFieldAnnotations: true |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 52 | BreakBeforeBinaryOperators: None |
| 53 | BreakBeforeBraces: Custom |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 54 | BreakBeforeConceptDeclarations: true |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 55 | BreakBeforeTernaryOperators: true |
| 56 | BreakConstructorInitializers: AfterColon |
| 57 | BreakInheritanceList: AfterColon |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 58 | BreakStringLiterals: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 59 | ColumnLimit: 80 |
| 60 | CommentPragmas: '^ IWYU pragma:' |
| 61 | CompactNamespaces: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 62 | ConstructorInitializerIndentWidth: 4 |
| 63 | ContinuationIndentWidth: 4 |
| 64 | Cpp11BracedListStyle: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 65 | DeriveLineEnding: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 66 | DerivePointerAlignment: false |
| 67 | PointerAlignment: Left |
| 68 | DisableFormat: false |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 69 | EmptyLineAfterAccessModifier: Never |
| 70 | EmptyLineBeforeAccessModifier: Always |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 71 | ExperimentalAutoDetectBinPacking: false |
| 72 | FixNamespaceComments: true |
| 73 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 74 | IfMacros: [] |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 75 | IncludeBlocks: Regroup |
| 76 | IncludeCategories: |
| 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 Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 93 | IncludeIsMainRegex: '' |
| 94 | IncludeIsMainSourceRegex: '' |
| 95 | IndentAccessModifiers: false |
| 96 | IndentCaseBlocks: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 97 | IndentCaseLabels: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 98 | IndentExternBlock: NoIndent |
| 99 | IndentGotoLabels: false |
| 100 | IndentPPDirectives: None |
| 101 | IndentRequires: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 102 | IndentWidth: 4 |
| 103 | IndentWrappedFunctionNames: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 104 | InsertTrailingCommas: None |
| 105 | JavaImportGroups: [] |
| 106 | JavaScriptQuotes: Leave |
| 107 | JavaScriptWrapImports: true |
| 108 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 109 | LambdaBodyIndentation: Signature |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 110 | MacroBlockBegin: '' |
| 111 | MacroBlockEnd: '' |
| 112 | MaxEmptyLinesToKeep: 1 |
| 113 | NamespaceIndentation: None |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 114 | NamespaceMacros: [] |
| 115 | ObjCBinPackProtocolList: Auto |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 116 | ObjCBlockIndentWidth: 2 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 117 | ObjCBreakBeforeNestedBlockParam: true |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 118 | ObjCSpaceAfterProperty: false |
| 119 | ObjCSpaceBeforeProtocolList: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 120 | PPIndentWidth: -1 |
| 121 | PackConstructorInitializers: BinPack |
| 122 | PenaltyBreakAssignment: 2 |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 123 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 124 | PenaltyBreakComment: 300 |
| 125 | PenaltyBreakFirstLessLess: 120 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 126 | PenaltyBreakOpenParenthesis: 0 |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 127 | PenaltyBreakString: 1000 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 128 | PenaltyBreakTemplateDeclaration: 10 |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 129 | PenaltyExcessCharacter: 1000000 |
| 130 | PenaltyReturnTypeOnItsOwnLine: 60 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 131 | PenaltyIndentedWhitespace: 0 |
| 132 | QualifierAlignment: Leave |
| 133 | # Only used when QualifierAlignment is 'Custom' |
| 134 | # QualifierOrder: [] |
| 135 | RawStringFormats: [] |
| 136 | ReferenceAlignment: Pointer |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 137 | ReflowComments: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 138 | RemoveBracesLLVM: false |
| 139 | SeparateDefinitionBlocks: Leave |
| 140 | ShortNamespaceLines: 1 |
| 141 | SortIncludes: CaseSensitive |
| 142 | SortJavaStaticImport: Before |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 143 | SortUsingDeclarations: true |
| 144 | SpaceAfterCStyleCast: false |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 145 | SpaceAfterLogicalNot: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 146 | SpaceAfterTemplateKeyword: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 147 | SpaceAroundPointerQualifiers: Default |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 148 | SpaceBeforeAssignmentOperators: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 149 | SpaceBeforeCaseColon: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 150 | SpaceBeforeCpp11BracedList: false |
| 151 | SpaceBeforeCtorInitializerColon: true |
| 152 | SpaceBeforeInheritanceColon: true |
| 153 | SpaceBeforeParens: ControlStatements |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 154 | SpaceBeforeParensOptions: |
| 155 | AfterControlStatements: true |
| 156 | AfterForeachMacros: true |
| 157 | AfterFunctionDefinitionName: false |
| 158 | AfterFunctionDeclarationName: false |
| 159 | AfterIfMacros: true |
| 160 | AfterOverloadedOperator: false |
| 161 | BeforeNonEmptyParentheses: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 162 | SpaceBeforeRangeBasedForLoopColon: true |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 163 | SpaceBeforeSquareBrackets: false |
| 164 | SpaceInEmptyBlock: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 165 | SpaceInEmptyParentheses: false |
| 166 | SpacesBeforeTrailingComments: 1 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 167 | SpacesInAngles: Never |
| 168 | SpacesInConditionalStatement: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 169 | SpacesInContainerLiterals: true |
| 170 | SpacesInCStyleCastParentheses: false |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 171 | SpacesInLineCommentPrefix: |
| 172 | Minimum: 1 |
| 173 | Maximum: -1 |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 174 | SpacesInParentheses: false |
| 175 | SpacesInSquareBrackets: false |
Zane Shelley | cac5dc6 | 2020-06-03 17:09:22 -0500 | [diff] [blame] | 176 | Standard: Latest |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 177 | StatementAttributeLikeMacros: [] |
| 178 | StatementMacros: [] |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 179 | TabWidth: 4 |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 180 | TypenameMacros: [] |
| 181 | UseCRLF: false |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 182 | UseTab: Never |
Zane Shelley | b82cbf7 | 2022-06-27 10:28:06 -0500 | [diff] [blame^] | 183 | WhitespaceSensitiveMacros: |
| 184 | - STRINGIZE |
| 185 | - PP_STRINGIZE |
| 186 | - BOOST_PP_STRINGIZE |
| 187 | - NS_SWIFT_NAME |
| 188 | - CF_SWIFT_NAME |
Ben Tyner | 6c1c3a1 | 2020-01-09 09:17:50 -0600 | [diff] [blame] | 189 | ... |
| 190 | |