-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
43 lines (38 loc) · 1.31 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
BasedOnStyle: LLVM
ColumnLimit: 0
IndentWidth: '3'
TabWidth: '3'
AccessModifierOffset: '-2'
ConstructorInitializerIndentWidth: '3'
ContinuationIndentWidth: '3'
MaxEmptyLinesToKeep: '2'
ObjCBlockIndentWidth: '3'
UseTab: ForContinuationAndIndentation
IndentCaseLabels: 'true'
#IndentPPDirectives: BeforeHash
#IndentAccessModifiers: 'true' # clang 13 only, this should replace AccessModifierOffset
NamespaceIndentation: All
#SpacesInLineCommentPrefix: 1 # clang 13 only
#SortIncludes # clang 13 only, setting needs to be figured out
AlignAfterOpenBracket: DontAlign
AlignConsecutiveMacros: 'false'
AlignConsecutiveAssignments: 'false'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlines: DontAlign
AlignOperands: 'false'
AlignTrailingComments: 'false'
DerivePointerAlignment: 'false'
PointerAlignment: Left
BreakAfterJavaFieldAnnotations: 'true'
# https://reviews.llvm.org/D33029 add this when it gets implemented
BreakBeforeBraces: Attach
BreakBeforeBinaryOperators: None
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: 'false'
#AllowShortEnumsOnASingleLine: true # this breaks things?
AllowShortFunctionsOnASingleLine: Inline
#AllowShortIfStatementsOnASingleLine: Never
#AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: 'false'
AlignAfterOpenBracket: DontAlign
FixNamespaceComments: false