Ton

Форк
0
/
.clang-format 
88 строк · 2.6 Кб
1
---
2
Language:        Cpp
3
# BasedOnStyle:  Google
4
AccessModifierOffset: -1
5
AlignAfterOpenBracket: Align
6
AlignConsecutiveAssignments: false
7
AlignConsecutiveDeclarations: false
8
AlignEscapedNewlinesLeft: true
9
AlignOperands:   true
10
AlignTrailingComments: true
11
AllowAllParametersOfDeclarationOnNextLine: true
12
AllowShortBlocksOnASingleLine: false
13
AllowShortCaseLabelsOnASingleLine: false
14
AllowShortFunctionsOnASingleLine: None # All
15
AllowShortIfStatementsOnASingleLine: false # true
16
AllowShortLoopsOnASingleLine: false # true
17
AlwaysBreakAfterDefinitionReturnType: None
18
AlwaysBreakAfterReturnType: None
19
AlwaysBreakBeforeMultilineStrings: true
20
AlwaysBreakTemplateDeclarations: true
21
BinPackArguments: true
22
BinPackParameters: true
23
BraceWrapping:
24
  AfterClass:      false
25
  AfterControlStatement: false
26
  AfterEnum:       false
27
  AfterFunction:   false
28
  AfterNamespace:  false
29
  AfterObjCDeclaration: false
30
  AfterStruct:     false
31
  AfterUnion:      false
32
  BeforeCatch:     false
33
  BeforeElse:      false
34
  IndentBraces:    false
35
BreakBeforeBinaryOperators: None
36
BreakBeforeBraces: Attach
37
BreakBeforeTernaryOperators: true
38
BreakConstructorInitializersBeforeComma: true # false
39
# BreakAfterJavaFieldAnnotations: false
40
BreakStringLiterals: true
41
ColumnLimit:     120 # 80
42
CommentPragmas:  '^ IWYU pragma:'
43
ConstructorInitializerAllOnOneLineOrOnePerLine: true
44
ConstructorInitializerIndentWidth: 4
45
ContinuationIndentWidth: 4
46
Cpp11BracedListStyle: true
47
DerivePointerAlignment: true
48
DisableFormat:   false
49
ExperimentalAutoDetectBinPacking: false
50
FixNamespaceComments: true
51
# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
52
IndentCaseLabels: true
53
IndentWidth:     2
54
IndentWrappedFunctionNames: false
55
# JavaScriptQuotes: Leave
56
# JavaScriptWrapImports: true
57
KeepEmptyLinesAtTheStartOfBlocks: false
58
MacroBlockBegin: ''
59
MacroBlockEnd:   ''
60
MaxEmptyLinesToKeep: 1
61
NamespaceIndentation: None
62
# ObjCBlockIndentWidth: 2
63
# ObjCSpaceAfterProperty: false
64
# ObjCSpaceBeforeProtocolList: false
65
PenaltyBreakBeforeFirstCallParameter: 1
66
PenaltyBreakComment: 300
67
PenaltyBreakFirstLessLess: 120
68
PenaltyBreakString: 1000
69
PenaltyExcessCharacter: 1000000
70
PenaltyReturnTypeOnItsOwnLine: 200
71
PointerAlignment: Left
72
ReflowComments:  false # true
73
SortIncludes: false # disabled, because we need case insensitive sort
74
SpaceAfterCStyleCast: false
75
SpaceAfterTemplateKeyword: true
76
SpaceBeforeAssignmentOperators: true
77
SpaceBeforeParens: ControlStatements
78
SpaceInEmptyParentheses: false
79
SpacesBeforeTrailingComments: 2
80
SpacesInAngles:  false
81
SpacesInContainerLiterals: true
82
SpacesInCStyleCastParentheses: false
83
SpacesInParentheses: false
84
SpacesInSquareBrackets: false
85
Standard:        Auto
86
TabWidth:        100 # 8
87
UseTab:          Never
88
...
89

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

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

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

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