-
Notifications
You must be signed in to change notification settings - Fork 39
/
.clang-format
65 lines (49 loc) · 1.27 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
56
57
58
59
60
61
62
63
64
65
# .clang-format
# Recommended clang-format version: 19 or higher.
# Please note that alignment settings may not be supported in versions below 19.
# Base style to use
BasedOnStyle: Google
# Indentation settings
IndentWidth: 4
UseTab: Never
# Language:
Language: Cpp
# Alignment settings
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignTrailingComments: true
# Break settings
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
BeforeElse: true
AfterExternBlock: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
# Comment settings
CommentPragmas: Preserve
SortIncludes: false
# Case blocks
IndentCaseBlocks: true
# Space settings
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: false
# Other settings
ColumnLimit: 120
# Put each one of the function paremeters on its own line.
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false
# Function call’s arguments will have one line each.
BinPackArguments: false