.clang-format (6212B)
1 --- 2 Language: Cpp 3 AccessModifierOffset: -2 4 AlignAfterOpenBracket: Align 5 AlignConsecutiveAssignments: false 6 AlignConsecutiveDeclarations: false 7 AlignEscapedNewlines: Right 8 AlignOperands: true 9 AlignTrailingComments: true 10 AllowAllParametersOfDeclarationOnNextLine: true 11 AllowShortBlocksOnASingleLine: false 12 AllowShortCaseLabelsOnASingleLine: false 13 AllowShortFunctionsOnASingleLine: InlineOnly 14 AllowShortIfStatementsOnASingleLine: false 15 AllowShortLoopsOnASingleLine: false 16 AlwaysBreakAfterDefinitionReturnType: None 17 AlwaysBreakAfterReturnType: None 18 AlwaysBreakBeforeMultilineStrings: false 19 AlwaysBreakTemplateDeclarations: true 20 BinPackArguments: true 21 BinPackParameters: true 22 BraceWrapping: 23 AfterCaseLabel: true 24 AfterClass: true 25 AfterControlStatement: true 26 AfterEnum: true 27 AfterFunction: true 28 AfterNamespace: false 29 AfterObjCDeclaration: true 30 AfterStruct: true 31 AfterUnion: true 32 BeforeCatch: true 33 BeforeElse: true 34 IndentBraces: false 35 SplitEmptyFunction: true 36 SplitEmptyRecord: true 37 SplitEmptyNamespace: true 38 BreakBeforeBinaryOperators: None 39 BreakBeforeBraces: Custom 40 BreakBeforeInheritanceComma: false 41 BreakBeforeTernaryOperators: false 42 BreakConstructorInitializersBeforeComma: false 43 BreakConstructorInitializers: BeforeColon 44 BreakAfterJavaFieldAnnotations: false 45 BreakStringLiterals: true 46 BreakAfterAttributes: Leave 47 ColumnLimit: 120 48 CommentPragmas: '^ IWYU pragma:' 49 CompactNamespaces: false 50 ConstructorInitializerAllOnOneLineOrOnePerLine: false 51 ConstructorInitializerIndentWidth: 2 52 ContinuationIndentWidth: 2 53 Cpp11BracedListStyle: true 54 DerivePointerAlignment: false 55 DisableFormat: false 56 ExperimentalAutoDetectBinPacking: false 57 FixNamespaceComments: true 58 ForEachMacros: 59 - foreach 60 - Q_FOREACH 61 - BOOST_FOREACH 62 IncludeCategories: 63 - Regex: '^"(llvm|llvm-c|clang|clang-c)/' 64 Priority: 2 65 - Regex: '^(<|"(gtest|gmock|isl|json)/)' 66 Priority: 3 67 - Regex: '.*' 68 Priority: 1 69 IncludeIsMainRegex: '(Test)?$' 70 IndentCaseLabels: true 71 IndentWidth: 2 72 IndentWrappedFunctionNames: false 73 JavaScriptQuotes: Leave 74 JavaScriptWrapImports: true 75 KeepEmptyLinesAtTheStartOfBlocks: true 76 MacroBlockBegin: '' 77 MacroBlockEnd: '' 78 MaxEmptyLinesToKeep: 1 79 NamespaceIndentation: None 80 ObjCBlockIndentWidth: 2 81 ObjCSpaceAfterProperty: false 82 ObjCSpaceBeforeProtocolList: true 83 PenaltyBreakAssignment: 2 84 PenaltyBreakBeforeFirstCallParameter: 19 85 PenaltyBreakComment: 300 86 PenaltyBreakFirstLessLess: 120 87 PenaltyBreakString: 1000 88 PenaltyExcessCharacter: 1000000 89 PenaltyReturnTypeOnItsOwnLine: 60 90 PointerAlignment: Left 91 ReflowComments: true 92 SortIncludes: true 93 SortUsingDeclarations: true 94 SpaceAfterCStyleCast: false 95 SpaceAfterTemplateKeyword: false 96 SpaceBeforeAssignmentOperators: true 97 SpaceBeforeParens: ControlStatements 98 SpaceInEmptyParentheses: false 99 SpacesBeforeTrailingComments: 1 100 SpacesInAngles: false 101 SpacesInContainerLiterals: true 102 SpacesInCStyleCastParentheses: false 103 SpacesInParentheses: false 104 SpacesInSquareBrackets: false 105 Standard: Cpp11 106 TabWidth: 2 107 UseTab: Never 108 ... 109 --- 110 Language: ObjC 111 AccessModifierOffset: -2 112 AlignAfterOpenBracket: Align 113 AlignConsecutiveAssignments: false 114 AlignConsecutiveDeclarations: false 115 AlignEscapedNewlines: Right 116 AlignOperands: true 117 AlignTrailingComments: true 118 AllowAllParametersOfDeclarationOnNextLine: true 119 AllowShortBlocksOnASingleLine: false 120 AllowShortCaseLabelsOnASingleLine: false 121 AllowShortFunctionsOnASingleLine: InlineOnly 122 AllowShortIfStatementsOnASingleLine: false 123 AllowShortLoopsOnASingleLine: false 124 AlwaysBreakAfterDefinitionReturnType: None 125 AlwaysBreakAfterReturnType: None 126 AlwaysBreakBeforeMultilineStrings: false 127 AlwaysBreakTemplateDeclarations: true 128 BinPackArguments: true 129 BinPackParameters: true 130 BraceWrapping: 131 AfterCaseLabel: true 132 AfterClass: true 133 AfterControlStatement: true 134 AfterEnum: true 135 AfterFunction: true 136 AfterNamespace: false 137 AfterObjCDeclaration: true 138 AfterStruct: true 139 AfterUnion: true 140 BeforeCatch: true 141 BeforeElse: true 142 IndentBraces: false 143 SplitEmptyFunction: true 144 SplitEmptyRecord: true 145 SplitEmptyNamespace: true 146 BreakBeforeBinaryOperators: None 147 BreakBeforeBraces: Custom 148 BreakBeforeInheritanceComma: false 149 BreakBeforeTernaryOperators: false 150 BreakConstructorInitializersBeforeComma: false 151 BreakConstructorInitializers: BeforeColon 152 BreakAfterJavaFieldAnnotations: false 153 BreakStringLiterals: true 154 ColumnLimit: 120 155 CommentPragmas: '^ IWYU pragma:' 156 CompactNamespaces: false 157 ConstructorInitializerAllOnOneLineOrOnePerLine: false 158 ConstructorInitializerIndentWidth: 2 159 ContinuationIndentWidth: 2 160 Cpp11BracedListStyle: true 161 DerivePointerAlignment: false 162 DisableFormat: false 163 ExperimentalAutoDetectBinPacking: false 164 FixNamespaceComments: true 165 ForEachMacros: 166 - foreach 167 - Q_FOREACH 168 - BOOST_FOREACH 169 IncludeCategories: 170 - Regex: '^"(llvm|llvm-c|clang|clang-c)/' 171 Priority: 2 172 - Regex: '^(<|"(gtest|gmock|isl|json)/)' 173 Priority: 3 174 - Regex: '.*' 175 Priority: 1 176 IncludeIsMainRegex: '(Test)?$' 177 IndentCaseLabels: true 178 IndentWidth: 2 179 IndentWrappedFunctionNames: false 180 JavaScriptQuotes: Leave 181 JavaScriptWrapImports: true 182 KeepEmptyLinesAtTheStartOfBlocks: true 183 MacroBlockBegin: '' 184 MacroBlockEnd: '' 185 MaxEmptyLinesToKeep: 1 186 NamespaceIndentation: None 187 ObjCBlockIndentWidth: 2 188 ObjCSpaceAfterProperty: false 189 ObjCSpaceBeforeProtocolList: true 190 PenaltyBreakAssignment: 2 191 PenaltyBreakBeforeFirstCallParameter: 19 192 PenaltyBreakComment: 300 193 PenaltyBreakFirstLessLess: 120 194 PenaltyBreakString: 1000 195 PenaltyExcessCharacter: 1000000 196 PenaltyReturnTypeOnItsOwnLine: 60 197 PointerAlignment: Left 198 ReflowComments: true 199 SortIncludes: true 200 SortUsingDeclarations: true 201 SpaceAfterCStyleCast: false 202 SpaceAfterTemplateKeyword: false 203 SpaceBeforeAssignmentOperators: true 204 SpaceBeforeParens: ControlStatements 205 SpaceInEmptyParentheses: false 206 SpacesBeforeTrailingComments: 1 207 SpacesInAngles: false 208 SpacesInContainerLiterals: true 209 SpacesInCStyleCastParentheses: false 210 SpacesInParentheses: false 211 SpacesInSquareBrackets: false 212 Standard: Cpp11 213 TabWidth: 2 214 UseTab: Never 215 ... 216