-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
33 lines (33 loc) · 948 Bytes
/
.clang-format
File metadata and controls
33 lines (33 loc) · 948 Bytes
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
ColumnLimit: 120
AlignConsecutiveMacros: AcrossComments
AlignEscapedNewlines: Left
# AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: Empty
AlignTrailingComments: true
# IndentPPDirectives: BeforeHash
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
IndentCaseLabels: false
SeparateDefinitionBlocks: Always
SpaceBeforeParens: ControlStatements
AlignArrayOfStructures: Left
AlignAfterOpenBracket: DontAlign
BreakBeforeBraces: Custom
AlwaysBreakAfterReturnType: TopLevelDefinitions
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterUnion: true
AfterCaseLabel: true
BeforeElse: true
AfterControlStatement: true
AfterFunction: true
AfterObjCDeclaration: true
SplitEmptyFunction: true
IndentCaseBlocks: true
IndentPPDirectives: AfterHash
IndentWidth: 8
UseTab: Always