-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
executable file
·66 lines (66 loc) · 2.31 KB
/
.clang-format
File metadata and controls
executable file
·66 lines (66 loc) · 2.31 KB
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
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
#AlwaysBreakBeforeMultilineStrings: true # TODO activate later
AlwaysBreakTemplateDeclarations: true
#BinPackArguments: false # TODO activate later
#BinPackParameters: false # TODO activate later
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
#BreakBeforeInheritanceComma: false # TODO not known (yet, llvm 3.8)
BreakBeforeTernaryOperators: false # TODO breaks function definition lines in two, why ?
BreakConstructorInitializersBeforeComma: true
#BreakStringLiterals: false # TODO not known
ColumnLimit: 0
CommentPragmas: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 0
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DerivePointerBinding: false
#FixNamespaceComments: true # TODO not know (but active per default)
#IncludeCategories: # FIXME do this.
IndentCaseLabels: true
IndentFunctionDeclarationAfterType: false # TODO not in the documentation !?
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakComment: 100
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 100
PenaltyExcessCharacter: 1
PenaltyReturnTypeOnItsOwnLine: 100
PointerAlignment: Left
PointerBindsToType: true # legacy option ?
ReflowComments: false
SortIncludes: false # TODO change this
#SpaceAfterCStyleCast: true # TODO use only to check whether some C-style casts are still present.
#SpaceAfterTemplateKeyword: false # TODO not know
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never