|
| 1 | +# From https://github.com/curl/curl/wiki/clang-format-style |
| 2 | +--- |
| 3 | +Language: Cpp |
| 4 | +# BasedOnStyle: Mozilla |
| 5 | +AccessModifierOffset: -2 |
| 6 | +AlignAfterOpenBracket: Align |
| 7 | +AlignConsecutiveAssignments: false |
| 8 | +AlignConsecutiveDeclarations: false |
| 9 | +AlignEscapedNewlinesLeft: false |
| 10 | +AlignOperands: true |
| 11 | +AlignTrailingComments: false |
| 12 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 13 | +AllowShortBlocksOnASingleLine: false |
| 14 | +AllowShortCaseLabelsOnASingleLine: false |
| 15 | +AllowShortFunctionsOnASingleLine: Inline |
| 16 | +AllowShortIfStatementsOnASingleLine: false |
| 17 | +AllowShortLoopsOnASingleLine: false |
| 18 | +AlwaysBreakAfterDefinitionReturnType: TopLevel |
| 19 | +AlwaysBreakAfterReturnType: TopLevelDefinitions |
| 20 | +AlwaysBreakBeforeMultilineStrings: false |
| 21 | +AlwaysBreakTemplateDeclarations: true |
| 22 | +BinPackArguments: false |
| 23 | +BinPackParameters: true |
| 24 | +BraceWrapping: |
| 25 | + AfterClass: true |
| 26 | + AfterControlStatement: false |
| 27 | + AfterEnum: true |
| 28 | + AfterFunction: true |
| 29 | + AfterNamespace: false |
| 30 | + AfterObjCDeclaration: false |
| 31 | + AfterStruct: true |
| 32 | + AfterUnion: true |
| 33 | + BeforeCatch: false |
| 34 | + BeforeElse: true |
| 35 | + IndentBraces: false |
| 36 | +BreakBeforeBinaryOperators: None |
| 37 | +BreakBeforeBraces: Custom |
| 38 | +BreakBeforeTernaryOperators: true |
| 39 | +BreakConstructorInitializersBeforeComma: true |
| 40 | +ColumnLimit: 79 |
| 41 | +CommentPragmas: '^ IWYU pragma:' |
| 42 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 43 | +ConstructorInitializerIndentWidth: 2 |
| 44 | +ContinuationIndentWidth: 2 |
| 45 | +Cpp11BracedListStyle: false |
| 46 | +DerivePointerAlignment: false |
| 47 | +DisableFormat: false |
| 48 | +ExperimentalAutoDetectBinPacking: false |
| 49 | +ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 50 | +IncludeCategories: |
| 51 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 52 | + Priority: 2 |
| 53 | + - Regex: '^(<|"(gtest|isl|json)/)' |
| 54 | + Priority: 3 |
| 55 | + - Regex: '.*' |
| 56 | + Priority: 1 |
| 57 | +IndentCaseLabels: false |
| 58 | +IndentWidth: 2 |
| 59 | +IndentWrappedFunctionNames: false |
| 60 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 61 | +MacroBlockBegin: '' |
| 62 | +MacroBlockEnd: '' |
| 63 | +MaxEmptyLinesToKeep: 1 |
| 64 | +NamespaceIndentation: None |
| 65 | +ObjCBlockIndentWidth: 2 |
| 66 | +ObjCSpaceAfterProperty: true |
| 67 | +ObjCSpaceBeforeProtocolList: false |
| 68 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 69 | +PenaltyBreakComment: 300 |
| 70 | +PenaltyBreakFirstLessLess: 120 |
| 71 | +PenaltyBreakString: 1000 |
| 72 | +PenaltyExcessCharacter: 1000000 |
| 73 | +PenaltyReturnTypeOnItsOwnLine: 200 |
| 74 | +PointerAlignment: Right |
| 75 | +ReflowComments: true |
| 76 | +SortIncludes: false |
| 77 | +SpaceAfterCStyleCast: false |
| 78 | +SpaceBeforeAssignmentOperators: true |
| 79 | +SpaceBeforeParens: Never |
| 80 | +SpaceInEmptyParentheses: false |
| 81 | +SpacesBeforeTrailingComments: 1 |
| 82 | +SpacesInAngles: false |
| 83 | +SpacesInContainerLiterals: true |
| 84 | +SpacesInCStyleCastParentheses: false |
| 85 | +SpacesInParentheses: false |
| 86 | +SpacesInSquareBrackets: false |
| 87 | +Standard: Cpp11 |
| 88 | +TabWidth: 8 |
| 89 | +UseTab: Never |
0 commit comments