|
| 1 | +--- |
| 2 | +Language: Cpp |
| 3 | +# BasedOnStyle: LLVM |
| 4 | +# https://releases.llvm.org/12.0.1/tools/clang/docs/ClangFormatStyleOptions.html |
| 5 | +AccessModifierOffset: -2 |
| 6 | +AlignAfterOpenBracket: Align |
| 7 | +AlignConsecutiveMacros: None |
| 8 | +AlignConsecutiveAssignments: None |
| 9 | +AlignConsecutiveBitFields: None |
| 10 | +AlignConsecutiveDeclarations: None |
| 11 | +AlignEscapedNewlines: Right |
| 12 | +AlignOperands: Align |
| 13 | +AlignTrailingComments: true |
| 14 | +AllowAllArgumentsOnNextLine: true |
| 15 | +AllowAllConstructorInitializersOnNextLine: true |
| 16 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 17 | +AllowShortEnumsOnASingleLine: true |
| 18 | +AllowShortBlocksOnASingleLine: Never |
| 19 | +AllowShortCaseLabelsOnASingleLine: false |
| 20 | +AllowShortFunctionsOnASingleLine: All |
| 21 | +AllowShortLambdasOnASingleLine: All |
| 22 | +AllowShortIfStatementsOnASingleLine: Never |
| 23 | +AllowShortLoopsOnASingleLine: false |
| 24 | +AlwaysBreakAfterDefinitionReturnType: None |
| 25 | +AlwaysBreakAfterReturnType: None |
| 26 | +AlwaysBreakBeforeMultilineStrings: false |
| 27 | +AlwaysBreakTemplateDeclarations: Yes |
| 28 | +BinPackArguments: true |
| 29 | +BinPackParameters: true |
| 30 | +BreakBeforeBinaryOperators: None |
| 31 | +BreakBeforeConceptDeclarations: true |
| 32 | +BreakBeforeBraces: Linux |
| 33 | +BreakBeforeInheritanceComma: false |
| 34 | +BreakInheritanceList: BeforeColon |
| 35 | +BreakBeforeTernaryOperators: true |
| 36 | +BreakConstructorInitializersBeforeComma: false |
| 37 | +BreakConstructorInitializers: BeforeColon |
| 38 | +BreakAfterJavaFieldAnnotations: false |
| 39 | +BreakStringLiterals: true |
| 40 | +ColumnLimit: 120 |
| 41 | +CompactNamespaces: false |
| 42 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 43 | +ConstructorInitializerIndentWidth: 4 |
| 44 | +ContinuationIndentWidth: 4 |
| 45 | +Cpp11BracedListStyle: true |
| 46 | +DeriveLineEnding: true |
| 47 | +DerivePointerAlignment: false |
| 48 | +DisableFormat: false |
| 49 | +EmptyLineBeforeAccessModifier: LogicalBlock |
| 50 | +ExperimentalAutoDetectBinPacking: false |
| 51 | +FixNamespaceComments: true |
| 52 | +IncludeBlocks: Preserve |
| 53 | +IndentCaseLabels: false |
| 54 | +IndentCaseBlocks: false |
| 55 | +IndentGotoLabels: true |
| 56 | +IndentPPDirectives: None |
| 57 | +IndentExternBlock: AfterExternBlock |
| 58 | +IndentRequires: false |
| 59 | +IndentWidth: 4 |
| 60 | +IndentWrappedFunctionNames: false |
| 61 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 62 | +MacroBlockBegin: '' |
| 63 | +MacroBlockEnd: '' |
| 64 | +MaxEmptyLinesToKeep: 1 |
| 65 | +NamespaceIndentation: None |
| 66 | +PenaltyBreakAssignment: 2 |
| 67 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 68 | +PenaltyBreakComment: 300 |
| 69 | +PenaltyBreakFirstLessLess: 120 |
| 70 | +PenaltyBreakString: 1000 |
| 71 | +PenaltyBreakTemplateDeclaration: 10 |
| 72 | +PenaltyExcessCharacter: 1000000 |
| 73 | +PenaltyReturnTypeOnItsOwnLine: 60 |
| 74 | +PenaltyIndentedWhitespace: 0 |
| 75 | +PointerAlignment: Right |
| 76 | +ReflowComments: true |
| 77 | +SortIncludes: true |
| 78 | +SortUsingDeclarations: true |
| 79 | +SpaceAfterCStyleCast: false |
| 80 | +SpaceAfterLogicalNot: false |
| 81 | +SpaceAfterTemplateKeyword: true |
| 82 | +SpaceBeforeAssignmentOperators: true |
| 83 | +SpaceBeforeCaseColon: false |
| 84 | +SpaceBeforeCpp11BracedList: false |
| 85 | +SpaceBeforeCtorInitializerColon: true |
| 86 | +SpaceBeforeInheritanceColon: true |
| 87 | +SpaceBeforeParens: ControlStatements |
| 88 | +SpaceAroundPointerQualifiers: Default |
| 89 | +SpaceBeforeRangeBasedForLoopColon: true |
| 90 | +SpaceInEmptyBlock: false |
| 91 | +SpaceInEmptyParentheses: false |
| 92 | +SpacesBeforeTrailingComments: 1 |
| 93 | +SpacesInAngles: false |
| 94 | +SpacesInConditionalStatement: false |
| 95 | +SpacesInContainerLiterals: false |
| 96 | +SpacesInCStyleCastParentheses: false |
| 97 | +SpacesInParentheses: false |
| 98 | +SpacesInSquareBrackets: false |
| 99 | +SpaceBeforeSquareBrackets: false |
| 100 | +BitFieldColonSpacing: Both |
| 101 | +Standard: Latest |
| 102 | +UseCRLF: false |
| 103 | +UseTab: Never |
| 104 | +CommentPragmas: '^ IWYU pragma:' |
| 105 | +ForEachMacros: |
| 106 | + - foreach |
| 107 | +IncludeIsMainRegex: '(Test)?$' |
| 108 | +IncludeIsMainSourceRegex: '' |
| 109 | +StatementMacros: [] |
| 110 | +StatementAttributeLikeMacros: |
| 111 | + - Q_EMIT |
| 112 | +WhitespaceSensitiveMacros: [] |
| 113 | +IncludeCategories: |
| 114 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 115 | + Priority: 2 |
| 116 | + SortPriority: 0 |
| 117 | + CaseSensitive: false |
| 118 | + - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 119 | + Priority: 3 |
| 120 | + SortPriority: 0 |
| 121 | + CaseSensitive: false |
| 122 | + - Regex: '.*' |
| 123 | + Priority: 1 |
| 124 | + SortPriority: 0 |
| 125 | + CaseSensitive: false |
0 commit comments