|
| 1 | +# These options seem to change all the time. I've removed things that are C++, |
| 2 | +# Objective-C, or JSON specific. For reference: |
| 3 | +# https://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 4 | + |
| 5 | +--- |
| 6 | +Language: Cpp |
| 7 | +BasedOnStyle: GNU |
| 8 | +AccessModifierOffset: -2 |
| 9 | +AlignAfterOpenBracket: Align |
| 10 | +AlignArrayOfStructures: None |
| 11 | +AlignConsecutiveAssignments: |
| 12 | + Enabled: false |
| 13 | + AcrossEmptyLines: false |
| 14 | + AcrossComments: false |
| 15 | + AlignCompound: false |
| 16 | + AlignFunctionPointers: false |
| 17 | + PadOperators: false |
| 18 | +AlignConsecutiveBitFields: |
| 19 | + Enabled: false |
| 20 | + AcrossEmptyLines: false |
| 21 | + AcrossComments: false |
| 22 | + AlignCompound: false |
| 23 | + AlignFunctionPointers: false |
| 24 | + PadOperators: false |
| 25 | +AlignConsecutiveDeclarations: |
| 26 | + Enabled: false |
| 27 | + AcrossEmptyLines: false |
| 28 | + AcrossComments: false |
| 29 | + AlignCompound: false |
| 30 | + AlignFunctionPointers: false |
| 31 | + PadOperators: false |
| 32 | +AlignConsecutiveMacros: |
| 33 | + Enabled: false |
| 34 | + AcrossEmptyLines: false |
| 35 | + AcrossComments: false |
| 36 | + AlignCompound: false |
| 37 | + AlignFunctionPointers: false |
| 38 | + PadOperators: false |
| 39 | +AlignConsecutiveShortCaseStatements: |
| 40 | + Enabled: false |
| 41 | + AcrossEmptyLines: false |
| 42 | + AcrossComments: false |
| 43 | + AlignCaseColons: false |
| 44 | +AlignEscapedNewlines: Left |
| 45 | +AlignOperands: Align |
| 46 | +AlignTrailingComments: |
| 47 | + Kind: Always |
| 48 | + OverEmptyLines: 0 |
| 49 | +AllowAllArgumentsOnNextLine: false |
| 50 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 51 | +AllowShortBlocksOnASingleLine: Never |
| 52 | +AllowShortCaseLabelsOnASingleLine: false |
| 53 | +AllowShortCompoundRequirementOnASingleLine: true |
| 54 | +AllowShortEnumsOnASingleLine: false |
| 55 | +AllowShortFunctionsOnASingleLine: None |
| 56 | +AllowShortIfStatementsOnASingleLine: Never |
| 57 | +AllowShortLoopsOnASingleLine: false |
| 58 | +AlwaysBreakAfterDefinitionReturnType: All |
| 59 | +AlwaysBreakAfterReturnType: AllDefinitions |
| 60 | +AlwaysBreakBeforeMultilineStrings: false |
| 61 | +AlwaysBreakTemplateDeclarations: MultiLine |
| 62 | +AttributeMacros: |
| 63 | +BinPackArguments: true |
| 64 | +BinPackParameters: true |
| 65 | +BitFieldColonSpacing: Both |
| 66 | +BraceWrapping: |
| 67 | + AfterCaseLabel: false |
| 68 | + AfterControlStatement: Never |
| 69 | + AfterEnum: false |
| 70 | + AfterExternBlock: true |
| 71 | + AfterFunction: true |
| 72 | + AfterStruct: false |
| 73 | + AfterUnion: false |
| 74 | + BeforeElse: false |
| 75 | + BeforeWhile: false |
| 76 | + IndentBraces: false |
| 77 | + SplitEmptyFunction: true |
| 78 | + SplitEmptyRecord: true |
| 79 | + SplitEmptyNamespace: true |
| 80 | +BreakAdjacentStringLiterals: false |
| 81 | +BreakAfterAttributes: Leave |
| 82 | +BreakBeforeBinaryOperators: NonAssignment |
| 83 | +BreakBeforeBraces: Custom |
| 84 | +BreakBeforeInlineASMColon: OnlyMultiline |
| 85 | +BreakBeforeTernaryOperators: true |
| 86 | +BreakStringLiterals: false |
| 87 | +ColumnLimit: 80 |
| 88 | +CommentPragmas: '^\\.+' |
| 89 | +ContinuationIndentWidth: 4 |
| 90 | +DerivePointerAlignment: false |
| 91 | +DisableFormat: false |
| 92 | +ExperimentalAutoDetectBinPacking: false |
| 93 | +ForEachMacros: |
| 94 | +IfMacros: |
| 95 | +IncludeBlocks: Preserve |
| 96 | +IncludeCategories: |
| 97 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 98 | + Priority: 2 |
| 99 | + SortPriority: 0 |
| 100 | + CaseSensitive: false |
| 101 | + - Regex: '.*' |
| 102 | + Priority: 1 |
| 103 | + SortPriority: 0 |
| 104 | + CaseSensitive: false |
| 105 | +IncludeIsMainRegex: '(Test)?$' |
| 106 | +IncludeIsMainSourceRegex: '' |
| 107 | +IndentCaseBlocks: true |
| 108 | +IndentCaseLabels: true |
| 109 | +IndentGotoLabels: false |
| 110 | +IndentPPDirectives: AfterHash |
| 111 | +IndentWidth: 4 |
| 112 | +IndentWrappedFunctionNames: false |
| 113 | +InsertBraces: true |
| 114 | +InsertNewlineAtEOF: false |
| 115 | +InsertTrailingCommas: None |
| 116 | +IntegerLiteralSeparator: |
| 117 | + Binary: 0 |
| 118 | + BinaryMinDigits: 0 |
| 119 | + Decimal: 0 |
| 120 | + DecimalMinDigits: 0 |
| 121 | + Hex: 0 |
| 122 | + HexMinDigits: 0 |
| 123 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 124 | +KeepEmptyLinesAtEOF: false |
| 125 | +LineEnding: DeriveLF |
| 126 | +MacroBlockBegin: '' |
| 127 | +MacroBlockEnd: '' |
| 128 | +MaxEmptyLinesToKeep: 1 |
| 129 | +PenaltyBreakAssignment: 2 |
| 130 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 131 | +PenaltyBreakComment: 300 |
| 132 | +PenaltyBreakFirstLessLess: 120 |
| 133 | +PenaltyBreakOpenParenthesis: 0 |
| 134 | +PenaltyBreakScopeResolution: 500 |
| 135 | +PenaltyBreakString: 1000 |
| 136 | +PenaltyBreakTemplateDeclaration: 10 |
| 137 | +PenaltyExcessCharacter: 1000000 |
| 138 | +PenaltyIndentedWhitespace: 0 |
| 139 | +PenaltyReturnTypeOnItsOwnLine: 60 |
| 140 | +PointerAlignment: Right |
| 141 | +PPIndentWidth: -1 |
| 142 | +QualifierAlignment: Leave |
| 143 | +ReferenceAlignment: Pointer |
| 144 | +ReflowComments: true |
| 145 | +RemoveBracesLLVM: false |
| 146 | +RemoveParentheses: MultipleParentheses |
| 147 | +RemoveSemicolon: true |
| 148 | +SeparateDefinitionBlocks: Always |
| 149 | +SkipMacroDefinitionBody: false |
| 150 | +SortIncludes: CaseSensitive |
| 151 | +SpaceAfterCStyleCast: true |
| 152 | +SpaceAfterLogicalNot: false |
| 153 | +SpaceAroundPointerQualifiers: Default |
| 154 | +SpaceBeforeAssignmentOperators: true |
| 155 | +SpaceBeforeCaseColon: false |
| 156 | +SpaceBeforeParens: Custom |
| 157 | +SpaceBeforeParensOptions: |
| 158 | + AfterControlStatements: true |
| 159 | + AfterForeachMacros: false |
| 160 | + AfterFunctionDefinitionName: false |
| 161 | + AfterFunctionDeclarationName: false |
| 162 | + AfterIfMacros: false |
| 163 | + BeforeNonEmptyParentheses: false |
| 164 | +SpaceBeforeSquareBrackets: false |
| 165 | +SpaceInEmptyBlock: false |
| 166 | +SpacesBeforeTrailingComments: 1 |
| 167 | +SpacesInContainerLiterals: false |
| 168 | +SpacesInLineCommentPrefix: |
| 169 | + Minimum: 1 |
| 170 | + Maximum: -1 |
| 171 | +SpacesInParens: Custom |
| 172 | +SpacesInParensOptions: |
| 173 | + InCStyleCasts: false |
| 174 | + InConditionalStatements: false |
| 175 | + InEmptyParentheses: false |
| 176 | + Other: false |
| 177 | +SpacesInSquareBrackets: false |
| 178 | +Standard: c++03 |
| 179 | +StatementAttributeLikeMacros: |
| 180 | +StatementMacros: |
| 181 | +TabWidth: 4 |
| 182 | +UseTab: Never |
| 183 | +WhitespaceSensitiveMacros: |
| 184 | +... |
0 commit comments