-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
68 lines (66 loc) · 2.06 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
68
#too new are the ones with custom enumerations->
#activate them later
AccessModifierOffset: -2
#AlignAfterOpenBracket: BAS_Align
#AlignConsecutiveAssignments: true #has problems with loops
#AlignConsecutiveDeclarations: true #has problems with loops
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true #do I want this?
AllowShortCaseLabelsOnASingleLine: true #to be thought over
#AllowShortFunctionsOnASingleLine: SFS_All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
#AlwaysBreakAfterReturnType: RTBS_None
#AlwaysBreakBeforeMultilineStrings#I don't know
AlwaysBreakTemplateDeclarations: true
#BinPackArguments: false#what if there are a lot of smal ones?
#BinPackParameters:false
#BreakBeforeBraces: BS_Custom
#BraceWrapping{
# AfterClass:false
# AfterControlStatement: false
# AfterEnum: false
# AfterFunction: false
# AfterNamespace: false
# AfterStruct: false
# AfterUnion: false
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false
#}
#BreakBeforeBinaryOperators: BOS_NonAssignment
#BreakBeforeInheritanceComma: true #? #too new...
BreakBeforeTernaryOperators: true
#BreakConstructorInitializersBeforeComma: true ?
#BreakStringLiterals: false #safety #too new...
ColumnLimit: 0
#CommentPragmas
ConstructorInitializerAllOnOneLineOrOnePerLine: true #?
#ConstructorInitializerIndentWidth: #?
#ContinuationIndentWidth #?
#FixNamespaceComments: true #too new...
IndentCaseLabels: false
IndentWidth: 2
#IndentPPDirectives: true #too new...
#IndentWrappedFunctionNames ?
KeepEmptyLinesAtTheStartOfBlocks: false
#Language: LK_Cpp
MaxEmptyLinesToKeep: 5
#NamespaceIndentation: NI_All
#penalties missing
#PointerAlignment: PAS_Middle
ReflowComments: false
SortIncludes: false #safety
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
#SpaceBeforeParens: SBPO_Never
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
#Standard: LS_Cpp11
#UseTab: UT_Never