-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-format
51 lines (51 loc) · 1.67 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
Language: Cpp
IndentWidth: 4
TabWidth: 4
UseTab: Always
ColumnLimit: 80
# Aligns the pointers to the left
DerivePointerAlignment: false
PointerAlignment: Right
# Makes braces open on the next line
BreakBeforeBraces: Allman
# Breaks constructor initializers before commas
BreakConstructorInitializersBeforeComma: false
# Always break before concept, putting it in the line after the template declaration.
BreakBeforeConceptDeclarations: Always
# Put binary operators in line after if line length exceeded
BreakBeforeBinaryOperators: All
# Puts short functions on a single line
AllowShortFunctionsOnASingleLine: Empty
# Puts short loops on a single line
AllowShortLoopsOnASingleLine: false
# Aligns trailing comments
AlignTrailingComments: true
# Indents the parameters of a function declaration or call after the opening bracket
AlignAfterOpenBracket: BlockIndent
# Prevents all parameters of a function declaration from being put on the next line
AllowAllParametersOfDeclarationOnNextLine: false
# Prevents packing of function call arguments into a single line
BinPackArguments: false
# Prevents packing of function parameters into a single line
BinPackParameters: false
# Aligns consecutive declarations
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# Aligns consecutive bit fields
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# Aligns consecutive macros
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# Aligns consecutive case statements
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCaseColons: false