cloudflare/ClickHouse
Publicmirrored fromhttps://github.com/cloudflare/ClickHouse
.clang-format
87lines · modecode
| 1 | --- |
| 2 | BasedOnStyle: WebKit |
| 3 | Language: Cpp |
| 4 | AlignAfterOpenBracket: false |
| 5 | BreakBeforeBraces: Allman |
| 6 | BreakConstructorInitializersBeforeComma: false |
| 7 | Cpp11BracedListStyle: false |
| 8 | ColumnLimit: 140 |
| 9 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 10 | ExperimentalAutoDetectBinPacking: true |
| 11 | UseTab: Always |
| 12 | Standard: Cpp11 |
| 13 | TabWidth: 4 |
| 14 | PointerAlignment: Middle |
| 15 | MaxEmptyLinesToKeep: 2 |
| 16 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 17 | #AllowShortFunctionsOnASingleLine: Inline |
| 18 | AllowShortFunctionsOnASingleLine: Empty |
| 19 | AlwaysBreakTemplateDeclarations: true |
| 20 | #SpaceAfterTemplateKeyword: true |
| 21 | SortIncludes: true |
| 22 | IncludeCategories: |
| 23 | - Regex: '^<[a-z_]+>' |
| 24 | Priority: 1 |
| 25 | - Regex: '^<[a-z_]+.h>' |
| 26 | Priority: 2 |
| 27 | - Regex: '^["<](common|ext|mysqlxx|daemon)/' |
| 28 | Priority: 90 |
| 29 | - Regex: '^["<](DB)/' |
| 30 | Priority: 100 |
| 31 | - Regex: '^["<](Poco)/' |
| 32 | Priority: 50 |
| 33 | - Regex: '/' |
| 34 | Priority: 30 |
| 35 | - Regex: '.*' |
| 36 | Priority: 40 |
| 37 | ReflowComments: false |
| 38 | |
| 39 | # Not changed: |
| 40 | AccessModifierOffset: -4 |
| 41 | AlignConsecutiveAssignments: false |
| 42 | AlignEscapedNewlinesLeft: false |
| 43 | AlignOperands: false |
| 44 | AlignTrailingComments: false |
| 45 | AllowAllParametersOfDeclarationOnNextLine: true |
| 46 | AllowShortBlocksOnASingleLine: false |
| 47 | AllowShortCaseLabelsOnASingleLine: false |
| 48 | AllowShortIfStatementsOnASingleLine: false |
| 49 | AllowShortLoopsOnASingleLine: false |
| 50 | AlwaysBreakAfterDefinitionReturnType: None |
| 51 | AlwaysBreakBeforeMultilineStrings: false |
| 52 | BinPackArguments: false |
| 53 | BinPackParameters: false |
| 54 | BreakBeforeBinaryOperators: All |
| 55 | BreakBeforeTernaryOperators: true |
| 56 | CommentPragmas: '^ IWYU pragma:' |
| 57 | ConstructorInitializerIndentWidth: 4 |
| 58 | ContinuationIndentWidth: 4 |
| 59 | DerivePointerAlignment: false |
| 60 | DisableFormat: false |
| 61 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 62 | IndentCaseLabels: false |
| 63 | IndentWidth: 4 |
| 64 | IndentWrappedFunctionNames: false |
| 65 | MacroBlockBegin: '' |
| 66 | MacroBlockEnd: '' |
| 67 | NamespaceIndentation: Inner |
| 68 | ObjCBlockIndentWidth: 4 |
| 69 | ObjCSpaceAfterProperty: true |
| 70 | ObjCSpaceBeforeProtocolList: true |
| 71 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 72 | PenaltyBreakComment: 300 |
| 73 | PenaltyBreakFirstLessLess: 120 |
| 74 | PenaltyBreakString: 1000 |
| 75 | PenaltyExcessCharacter: 1000000 |
| 76 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 77 | SpaceAfterCStyleCast: false |
| 78 | SpaceBeforeAssignmentOperators: true |
| 79 | SpaceBeforeParens: ControlStatements |
| 80 | SpaceInEmptyParentheses: false |
| 81 | SpacesBeforeTrailingComments: 1 |
| 82 | SpacesInContainerLiterals: true |
| 83 | SpacesInCStyleCastParentheses: false |
| 84 | SpacesInParentheses: false |
| 85 | SpacesInSquareBrackets: false |
| 86 | ... |