/ .clang-format
.clang-format
1 --- 2 Language: Cpp 3 AccessModifierOffset: -1 4 AlignAfterOpenBracket: Align 5 AlignArrayOfStructures: None 6 AlignConsecutiveAssignments: 7 Enabled: false 8 AcrossEmptyLines: false 9 AcrossComments: false 10 AlignCompound: false 11 AlignFunctionDeclarations: false 12 AlignFunctionPointers: false 13 PadOperators: true 14 AlignConsecutiveBitFields: 15 Enabled: false 16 AcrossEmptyLines: false 17 AcrossComments: false 18 AlignCompound: false 19 AlignFunctionDeclarations: false 20 AlignFunctionPointers: false 21 PadOperators: false 22 AlignConsecutiveDeclarations: 23 Enabled: false 24 AcrossEmptyLines: false 25 AcrossComments: false 26 AlignCompound: false 27 AlignFunctionDeclarations: true 28 AlignFunctionPointers: false 29 PadOperators: false 30 AlignConsecutiveMacros: 31 Enabled: true 32 AcrossEmptyLines: true 33 AcrossComments: true 34 AlignCompound: true 35 AlignFunctionDeclarations: true 36 AlignFunctionPointers: true 37 PadOperators: true 38 AlignConsecutiveShortCaseStatements: 39 Enabled: false 40 AcrossEmptyLines: false 41 AcrossComments: false 42 AlignCaseArrows: false 43 AlignCaseColons: false 44 AlignConsecutiveTableGenBreakingDAGArgColons: 45 Enabled: false 46 AcrossEmptyLines: false 47 AcrossComments: false 48 AlignCompound: false 49 AlignFunctionDeclarations: false 50 AlignFunctionPointers: false 51 PadOperators: false 52 AlignConsecutiveTableGenCondOperatorColons: 53 Enabled: false 54 AcrossEmptyLines: false 55 AcrossComments: false 56 AlignCompound: false 57 AlignFunctionDeclarations: false 58 AlignFunctionPointers: false 59 PadOperators: false 60 AlignConsecutiveTableGenDefinitionColons: 61 Enabled: false 62 AcrossEmptyLines: false 63 AcrossComments: false 64 AlignCompound: false 65 AlignFunctionDeclarations: false 66 AlignFunctionPointers: false 67 PadOperators: false 68 AlignEscapedNewlines: Left 69 AlignOperands: Align 70 AlignTrailingComments: 71 Kind: Always 72 OverEmptyLines: 0 73 AllowAllArgumentsOnNextLine: true 74 AllowAllParametersOfDeclarationOnNextLine: true 75 AllowBreakBeforeNoexceptSpecifier: Never 76 AllowShortBlocksOnASingleLine: Never 77 AllowShortCaseExpressionOnASingleLine: true 78 AllowShortCaseLabelsOnASingleLine: false 79 AllowShortCompoundRequirementOnASingleLine: true 80 AllowShortEnumsOnASingleLine: true 81 AllowShortFunctionsOnASingleLine: All 82 AllowShortIfStatementsOnASingleLine: WithoutElse 83 AllowShortLambdasOnASingleLine: All 84 AllowShortLoopsOnASingleLine: true 85 AllowShortNamespacesOnASingleLine: false 86 AlwaysBreakAfterDefinitionReturnType: None 87 AlwaysBreakBeforeMultilineStrings: true 88 AttributeMacros: 89 - __capability 90 BinPackArguments: true 91 BinPackParameters: BinPack 92 BitFieldColonSpacing: Both 93 BraceWrapping: 94 AfterCaseLabel: false 95 AfterClass: false 96 AfterControlStatement: Never 97 AfterEnum: false 98 AfterExternBlock: false 99 AfterFunction: false 100 AfterNamespace: false 101 AfterObjCDeclaration: false 102 AfterStruct: false 103 AfterUnion: false 104 BeforeCatch: false 105 BeforeElse: false 106 BeforeLambdaBody: false 107 BeforeWhile: false 108 IndentBraces: false 109 SplitEmptyFunction: true 110 SplitEmptyRecord: true 111 SplitEmptyNamespace: true 112 BreakAdjacentStringLiterals: true 113 BreakAfterAttributes: Leave 114 BreakAfterJavaFieldAnnotations: false 115 BreakAfterReturnType: None 116 BreakArrays: true 117 BreakBeforeBinaryOperators: None 118 BreakBeforeConceptDeclarations: Always 119 BreakBeforeBraces: Attach 120 BreakBeforeInlineASMColon: OnlyMultiline 121 BreakBeforeTernaryOperators: true 122 BreakBinaryOperations: Never 123 BreakConstructorInitializers: BeforeColon 124 BreakFunctionDefinitionParameters: false 125 BreakInheritanceList: BeforeColon 126 BreakStringLiterals: true 127 BreakTemplateDeclarations: Yes 128 ColumnLimit: 150 129 CommentPragmas: '^ IWYU pragma:' 130 CompactNamespaces: false 131 ConstructorInitializerIndentWidth: 4 132 ContinuationIndentWidth: 4 133 Cpp11BracedListStyle: true 134 DerivePointerAlignment: true 135 DisableFormat: false 136 EmptyLineAfterAccessModifier: Never 137 EmptyLineBeforeAccessModifier: LogicalBlock 138 ExperimentalAutoDetectBinPacking: false 139 FixNamespaceComments: true 140 ForEachMacros: 141 - foreach 142 - Q_FOREACH 143 - BOOST_FOREACH 144 IfMacros: 145 - KJ_IF_MAYBE 146 IncludeBlocks: Regroup 147 IncludeCategories: 148 - Regex: '^<ext/.*\.h>' 149 Priority: 2 150 SortPriority: 0 151 CaseSensitive: false 152 - Regex: '^<.*\.h>' 153 Priority: 1 154 SortPriority: 0 155 CaseSensitive: false 156 - Regex: '^<.*' 157 Priority: 2 158 SortPriority: 0 159 CaseSensitive: false 160 - Regex: '.*' 161 Priority: 3 162 SortPriority: 0 163 CaseSensitive: false 164 IncludeIsMainRegex: '([-_](test|unittest))?$' 165 IncludeIsMainSourceRegex: '' 166 IndentAccessModifiers: false 167 IndentCaseBlocks: false 168 IndentCaseLabels: true 169 IndentExportBlock: true 170 IndentExternBlock: AfterExternBlock 171 IndentGotoLabels: true 172 IndentPPDirectives: None 173 IndentRequiresClause: true 174 IndentWidth: 8 175 IndentWrappedFunctionNames: false 176 InsertBraces: false 177 InsertNewlineAtEOF: false 178 InsertTrailingCommas: None 179 IntegerLiteralSeparator: 180 Binary: 0 181 BinaryMinDigits: 0 182 Decimal: 0 183 DecimalMinDigits: 0 184 Hex: 0 185 HexMinDigits: 0 186 JavaScriptQuotes: Leave 187 JavaScriptWrapImports: true 188 KeepEmptyLines: 189 AtEndOfFile: false 190 AtStartOfBlock: false 191 AtStartOfFile: true 192 KeepFormFeed: false 193 LambdaBodyIndentation: Signature 194 LineEnding: DeriveLF 195 MacroBlockBegin: '' 196 MacroBlockEnd: '' 197 MainIncludeChar: Quote 198 MaxEmptyLinesToKeep: 1 199 NamespaceIndentation: None 200 ObjCBinPackProtocolList: Never 201 ObjCBlockIndentWidth: 2 202 ObjCBreakBeforeNestedBlockParam: true 203 ObjCSpaceAfterProperty: false 204 ObjCSpaceBeforeProtocolList: true 205 PackConstructorInitializers: NextLine 206 PenaltyBreakAssignment: 2 207 PenaltyBreakBeforeFirstCallParameter: 1 208 PenaltyBreakBeforeMemberAccess: 150 209 PenaltyBreakComment: 300 210 PenaltyBreakFirstLessLess: 120 211 PenaltyBreakOpenParenthesis: 0 212 PenaltyBreakScopeResolution: 500 213 PenaltyBreakString: 1000 214 PenaltyBreakTemplateDeclaration: 10 215 PenaltyExcessCharacter: 100 216 PenaltyIndentedWhitespace: 0 217 PenaltyReturnTypeOnItsOwnLine: 200 218 PointerAlignment: Left 219 PPIndentWidth: -1 220 QualifierAlignment: Leave 221 RawStringFormats: 222 - Language: Cpp 223 Delimiters: 224 - cc 225 - CC 226 - cpp 227 - Cpp 228 - CPP 229 - 'c++' 230 - 'C++' 231 CanonicalDelimiter: '' 232 BasedOnStyle: google 233 - Language: TextProto 234 Delimiters: 235 - pb 236 - PB 237 - proto 238 - PROTO 239 EnclosingFunctions: 240 - EqualsProto 241 - EquivToProto 242 - PARSE_PARTIAL_TEXT_PROTO 243 - PARSE_TEST_PROTO 244 - PARSE_TEXT_PROTO 245 - ParseTextOrDie 246 - ParseTextProtoOrDie 247 - ParseTestProto 248 - ParsePartialTestProto 249 CanonicalDelimiter: pb 250 BasedOnStyle: google 251 ReferenceAlignment: Pointer 252 ReflowComments: Always 253 RemoveBracesLLVM: false 254 RemoveEmptyLinesInUnwrappedLines: false 255 RemoveParentheses: Leave 256 RemoveSemicolon: false 257 RequiresClausePosition: OwnLine 258 RequiresExpressionIndentation: OuterScope 259 SeparateDefinitionBlocks: Leave 260 ShortNamespaceLines: 1 261 SkipMacroDefinitionBody: false 262 SortIncludes: CaseSensitive 263 SortJavaStaticImport: Before 264 SortUsingDeclarations: LexicographicNumeric 265 SpaceAfterCStyleCast: false 266 SpaceAfterLogicalNot: false 267 SpaceAfterTemplateKeyword: true 268 SpaceAroundPointerQualifiers: Default 269 SpaceBeforeAssignmentOperators: true 270 SpaceBeforeCaseColon: false 271 SpaceBeforeCpp11BracedList: false 272 SpaceBeforeCtorInitializerColon: true 273 SpaceBeforeInheritanceColon: true 274 SpaceBeforeJsonColon: false 275 SpaceBeforeParens: ControlStatements 276 SpaceBeforeParensOptions: 277 AfterControlStatements: true 278 AfterForeachMacros: true 279 AfterFunctionDefinitionName: false 280 AfterFunctionDeclarationName: false 281 AfterIfMacros: true 282 AfterOverloadedOperator: false 283 AfterPlacementOperator: true 284 AfterRequiresInClause: false 285 AfterRequiresInExpression: false 286 BeforeNonEmptyParentheses: false 287 SpaceBeforeRangeBasedForLoopColon: true 288 SpaceBeforeSquareBrackets: false 289 SpaceInEmptyBlock: false 290 SpacesBeforeTrailingComments: 2 291 SpacesInAngles: Never 292 SpacesInContainerLiterals: true 293 SpacesInLineCommentPrefix: 294 Minimum: 1 295 Maximum: -1 296 SpacesInParens: Never 297 SpacesInParensOptions: 298 ExceptDoubleParentheses: false 299 InCStyleCasts: false 300 InConditionalStatements: false 301 InEmptyParentheses: false 302 Other: false 303 SpacesInSquareBrackets: false 304 Standard: Auto 305 StatementAttributeLikeMacros: 306 - Q_EMIT 307 StatementMacros: 308 - Q_UNUSED 309 - QT_REQUIRE_VERSION 310 TableGenBreakInsideDAGArg: DontBreak 311 TabWidth: 8 312 UseTab: Never 313 VerilogBreakBetweenInstancePorts: true 314 WhitespaceSensitiveMacros: 315 - BOOST_PP_STRINGIZE 316 - CF_SWIFT_NAME 317 - NS_SWIFT_NAME 318 - PP_STRINGIZE 319 - STRINGIZE 320 WrapNamespaceBodyWithEmptyLines: Leave 321 ... 322