-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
67 lines (58 loc) · 1.71 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
BasedOnStyle: LLVM
Language: Cpp
Standard: Cpp11
IndentWidth: 4
TabWidth: 4
ContinuationIndentWidth: 4
ColumnLimit: 100
UseTab: Never
AccessModifierOffset: '-4'
NamespaceIndentation: None
MaxEmptyLinesToKeep: '1'
ReflowComments: 'false'
SortIncludes: 'true'
SortUsingDeclarations: 'false'
IncludeBlocks: Preserve
IndentCaseLabels: 'false'
IndentPPDirectives: AfterHash
IndentWrappedFunctionNames: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: Left
AlignOperands: 'true'
AlignTrailingComments: 'true'
PointerAlignment: Left
AlwaysBreakBeforeMultilineStrings: 'true'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: true
BinPackParameters: true
ExperimentalAutoDetectBinPacking: false
CompactNamespaces: 'false'
Cpp11BracedListStyle: 'true'
FixNamespaceComments: 'true'
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: 'false'
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: 'true'
SpaceAfterCStyleCast: 'true'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
PenaltyBreakAssignment: 50
#PenaltyBreakBeforeFirstCallParameter: 50
#PenaltyBreakComment: 10
#PenaltyBreakString: 100
PenaltyExcessCharacter: 20000
PenaltyReturnTypeOnItsOwnLine: 0