-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
55 lines (42 loc) · 1.38 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
---
BasedOnStyle: Microsoft
AlignEscapedNewlines: Left
IndentWidth: 4
ColumnLimit: 100
# We want a space between the type and the star for pointer types.
PointerBindsToType: false
# We want to break before the operators, but not before a '='.
BreakBeforeBinaryOperators: NonAssignment
# Braces are usually attached, but not after functions or class declarations.
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterCaseLabel: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
BeforeLambdaBody: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
# Indent width for line continuations.
ContinuationIndentWidth: 2
# Allow indentation for preprocessing directives (if/ifdef/endif). https://reviews.llvm.org/rL312125
IndentPPDirectives: AfterHash
# Do not indent public/private/protected
IndentAccessModifiers: false
# This is needed because IndentAccessModifiers doesn't seem to work
AccessModifierOffset: -4
BreakConstructorInitializers: AfterColon
PackConstructorInitializers: Never
# Horizontally align arguments after an open bracket.
AlignAfterOpenBracket: true
SortIncludes: false
InsertNewlineAtEOF: true
AlignConsecutiveMacros: AcrossEmptyLines
AlignConsecutiveAssignments: AcrossEmptyLines