-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
63 lines (50 loc) · 1.37 KB
/
.clang-format
File metadata and controls
63 lines (50 loc) · 1.37 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
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
IndentAccessModifiers: false
SeparateDefinitionBlocks: Always
MaxEmptyLinesToKeep: 2
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: false
BeforeCatch: false
BeforeElse: false
AfterEnum: false
AfterStruct: false
SplitEmptyFunction: false
AllowShortIfStatementsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
AlignAfterOpenBracket: BlockIndent
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignOperands: true
AlignTrailingComments: true
AlignEscapedNewlines: Left
AlignConsecutiveMacros: true
ReflowComments: false
KeepEmptyLinesAtTheStartOfBlocks: true
ColumnLimit: 0
PointerAlignment: Left
DerivePointerAlignment: false
SpaceBeforeParens: ControlStatements
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: true
SpacesInParentheses: false
SpacesInAngles: false
SpaceBeforeAssignmentOperators: true
BinPackArguments: false
BinPackParameters: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakAssignment: 10
PenaltyBreakComment: 100
PenaltyReturnTypeOnItsOwnLine: 100
IncludeBlocks: Preserve
SortIncludes: false
IndentPPDirectives: AfterHash
MacroBlockBegin: "^#(\\s*)?(if|ifdef|ifndef)"
MacroBlockEnd: "^#(\\s*)?endif"