-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
48 lines (33 loc) · 965 Bytes
/
.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
# not basing on any other style to protect against future changes
# BasedOnStyle: LLVM
Language: Cpp
# AlignArrayOfStructures: Left
AlignTrailingComments:
Kind: Never
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
# void f() {
# ...
# }
BreakBeforeBraces: Attach
# do not wrap lines.
ColumnLimit: 0
DerivePointerAlignment: false
IndentWidth: 8
IndentCaseLabels: true
# void* x;
PointerAlignment: Left
# sort includes, making it easier to find stuff
# we disable this for now as it would cause a lot of diff
# SortIncludes: true
SortIncludes: Never
SpacesInLineCommentPrefix:
Minimum: 0
Maximum: 1
SpacesInParentheses: false
# not using 'Always' because we want indentation
# to be done with tabs, and alignment and everything
# after the indentation to be done with spaces, so it
# looks consistent for everyone no matter their tab width in spaces.
UseTab: AlignWithSpaces