|
| 1 | +# clang-format style configuration |
| 2 | +# |
| 3 | +# For more information about each option, pleaser refer to the official documentation |
| 4 | +# http://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 5 | +--- |
| 6 | +Language: Cpp |
| 7 | + |
| 8 | +AccessModifierOffset: -2 |
| 9 | +AlignAfterOpenBracket: DontAlign |
| 10 | +AlignConsecutiveAssignments: true |
| 11 | +AlignConsecutiveDeclarations: false |
| 12 | +AlignEscapedNewlinesLeft: false |
| 13 | +AlignOperands: true |
| 14 | +AlignTrailingComments: true |
| 15 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 16 | +AllowShortBlocksOnASingleLine: true |
| 17 | +AllowShortCaseLabelsOnASingleLine: true |
| 18 | +AllowShortFunctionsOnASingleLine: All |
| 19 | +AllowShortIfStatementsOnASingleLine: true |
| 20 | +AllowShortLoopsOnASingleLine: true |
| 21 | +AlwaysBreakAfterDefinitionReturnType: All |
| 22 | +AlwaysBreakAfterReturnType: AllDefinitions |
| 23 | +AlwaysBreakBeforeMultilineStrings: false |
| 24 | +AlwaysBreakTemplateDeclarations: true |
| 25 | +BinPackArguments: true |
| 26 | +BinPackParameters: true |
| 27 | +# Ignored if BreakBeforeBraces different from Custom |
| 28 | +BraceWrapping: |
| 29 | + AfterClass: false |
| 30 | + AfterControlStatement: false |
| 31 | + AfterEnum: false |
| 32 | + AfterFunction: false |
| 33 | + AfterNamespace: false |
| 34 | + AfterObjCDeclaration: false |
| 35 | + AfterStruct: false |
| 36 | + AfterUnion: false |
| 37 | + BeforeCatch: true |
| 38 | + BeforeElse: true |
| 39 | + IndentBraces: false |
| 40 | +BreakBeforeBinaryOperators: NonAssignment |
| 41 | +BreakBeforeBraces: Custom |
| 42 | +BreakBeforeTernaryOperators: true |
| 43 | +BreakConstructorInitializersBeforeComma: true |
| 44 | +# Ignored in C++ |
| 45 | +BreakAfterJavaFieldAnnotations: false |
| 46 | +BreakStringLiterals: false |
| 47 | +ColumnLimit: 0 |
| 48 | +CommentPragmas: '.*' |
| 49 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 50 | +ConstructorInitializerIndentWidth: 0 |
| 51 | +ContinuationIndentWidth: 2 |
| 52 | +Cpp11BracedListStyle: true |
| 53 | +DerivePointerAlignment: false |
| 54 | +DisableFormat: false |
| 55 | +ExperimentalAutoDetectBinPacking: false |
| 56 | +ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 57 | +IncludeCategories: |
| 58 | + - Regex: 'cpp_redis' |
| 59 | + Priority: 1 |
| 60 | +IncludeIsMainRegex: '$' |
| 61 | +IndentCaseLabels: false |
| 62 | +IndentWidth: 2 |
| 63 | +IndentWrappedFunctionNames: false |
| 64 | +# Ignored in C++ |
| 65 | +JavaScriptQuotes: Leave |
| 66 | +# Ignored in C++ |
| 67 | +JavaScriptWrapImports: true |
| 68 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 69 | +MacroBlockBegin: '' |
| 70 | +MacroBlockEnd: '' |
| 71 | +MaxEmptyLinesToKeep: 2 |
| 72 | +NamespaceIndentation: None |
| 73 | +# Ignored in C++ |
| 74 | +ObjCBlockIndentWidth: 2 |
| 75 | +# Ignored in C++ |
| 76 | +ObjCSpaceAfterProperty: false |
| 77 | +# Ignored in C++ |
| 78 | +ObjCSpaceBeforeProtocolList: true |
| 79 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 80 | +PenaltyBreakComment: 300 |
| 81 | +PenaltyBreakFirstLessLess: 120 |
| 82 | +PenaltyBreakString: 1000 |
| 83 | +PenaltyExcessCharacter: 1000000 |
| 84 | +PenaltyReturnTypeOnItsOwnLine: 60 |
| 85 | +PointerAlignment: Left |
| 86 | +ReflowComments: true |
| 87 | +SortIncludes: true |
| 88 | +SpaceAfterCStyleCast: true |
| 89 | +SpaceBeforeAssignmentOperators: true |
| 90 | +SpaceBeforeParens: ControlStatements |
| 91 | +SpaceInEmptyParentheses: false |
| 92 | +SpacesBeforeTrailingComments: 1 |
| 93 | +SpacesInAngles: false |
| 94 | +SpacesInContainerLiterals: true |
| 95 | +SpacesInCStyleCastParentheses: false |
| 96 | +SpacesInParentheses: false |
| 97 | +SpacesInSquareBrackets: false |
| 98 | +Standard: Cpp11 |
| 99 | +TabWidth: 8 |
| 100 | +UseTab: Never |
| 101 | +... |
0 commit comments