ClickHouse

Форк
0
/
.clang-format 
101 строка · 2.7 Кб
1
BasedOnStyle: WebKit
2
Language: Cpp
3
AlignAfterOpenBracket: AlwaysBreak
4
BreakBeforeBraces: Custom
5
BraceWrapping:
6
    AfterClass: true
7
    AfterControlStatement: true
8
    AfterEnum: true
9
    AfterFunction: true
10
    AfterNamespace: true
11
    AfterStruct: true
12
    AfterUnion: true
13
    BeforeCatch: true
14
    BeforeElse: true
15
    BeforeLambdaBody: true
16
    IndentBraces: false
17
BreakConstructorInitializersBeforeComma: false
18
Cpp11BracedListStyle: true
19
ColumnLimit: 140
20
ConstructorInitializerAllOnOneLineOrOnePerLine: true
21
ExperimentalAutoDetectBinPacking: true
22
UseTab: Never
23
TabWidth: 4
24
Standard: Cpp11
25
PointerAlignment: Middle
26
MaxEmptyLinesToKeep: 2
27
KeepEmptyLinesAtTheStartOfBlocks: false
28
AllowShortFunctionsOnASingleLine: InlineOnly
29
AlwaysBreakTemplateDeclarations: true
30
IndentCaseLabels: true
31
SpaceAfterTemplateKeyword: true
32
SpaceBeforeCpp11BracedList: false
33
SortIncludes: true
34
IndentPPDirectives: AfterHash
35
IncludeCategories:
36
  - Regex: '^<[a-z_]+>'
37
    Priority: 1
38
  - Regex: '^<[a-z_]+.h>'
39
    Priority: 2
40
  - Regex: '^["<](common|ext|mysqlxx|daemon|zkutil)/'
41
    Priority: 90
42
  - Regex: '^["<](DB)/'
43
    Priority: 100
44
  - Regex: '^["<](Poco)/'
45
    Priority: 50
46
  - Regex: '^"'
47
    Priority: 110
48
  - Regex: '/'
49
    Priority: 30
50
  - Regex: '.*'
51
    Priority: 40
52
ReflowComments: false
53
AlignEscapedNewlinesLeft: false
54
AlignEscapedNewlines: DontAlign
55
AlignTrailingComments: false
56

57
# Not changed:
58
AccessModifierOffset: -4
59
AlignConsecutiveAssignments: false
60
AlignOperands: false
61
AllowAllParametersOfDeclarationOnNextLine: true
62
AllowShortBlocksOnASingleLine: false
63
AllowShortCaseLabelsOnASingleLine: false
64
AllowShortIfStatementsOnASingleLine: false
65
AllowShortLoopsOnASingleLine: false
66
AlwaysBreakAfterDefinitionReturnType: None
67
AlwaysBreakBeforeMultilineStrings: false
68
BinPackArguments: false
69
BinPackParameters: false
70
BreakBeforeBinaryOperators: All
71
BreakBeforeTernaryOperators: true
72
CommentPragmas: '^ IWYU pragma:'
73
ConstructorInitializerIndentWidth: 4
74
ContinuationIndentWidth: 4
75
DerivePointerAlignment: false
76
DisableFormat: false
77
IndentRequiresClause: false
78
IndentWidth: 4
79
IndentWrappedFunctionNames: false
80
MacroBlockBegin: ''
81
MacroBlockEnd: ''
82
NamespaceIndentation: None
83
ObjCBlockIndentWidth: 4
84
ObjCSpaceAfterProperty: true
85
ObjCSpaceBeforeProtocolList: true
86
PenaltyBreakBeforeFirstCallParameter: 19
87
PenaltyBreakComment: 300
88
PenaltyBreakFirstLessLess: 120
89
PenaltyBreakString: 1000
90
PenaltyExcessCharacter: 1000000
91
PenaltyReturnTypeOnItsOwnLine: 60
92
RemoveBracesLLVM: true
93
SpaceAfterCStyleCast: false
94
SpaceBeforeAssignmentOperators: true
95
SpaceBeforeParens: ControlStatements
96
SpaceInEmptyParentheses: false
97
SpacesBeforeTrailingComments: 1
98
SpacesInContainerLiterals: true
99
SpacesInCStyleCastParentheses: false
100
SpacesInParentheses: false
101
SpacesInSquareBrackets: false
102

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.