-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
70 lines (57 loc) · 1.5 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
66
67
68
69
70
---
# Based on Source SDK 2013 style conventions
BasedOnStyle: Google
# Align assignments and similar statements
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
# Align the * in declarations
DerivePointerAlignment: false
PointerAlignment: Left
# Column limit for wrapping code
ColumnLimit: 120
# Indentation settings
IndentWidth: 4
TabWidth: 4
UseTab: Never
# Bracing styles
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
# Control spaces around various constructs
#SpacesInParens: Custom
#SpacesInParensOptions:
# InCStyleCasts: false
# InEmptyParentheses: false
# InConditionalStatements: true
# Other: false
SpaceBeforeParens: ControlStatements
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceInEmptyParentheses: false
SpacesInSquareBrackets: false
# Control formatting of C++11 features
Cpp11BracedListStyle: false
# Namespace indentation
NamespaceIndentation: None
# Format comments
ReflowComments: true
# Additional settings to match Source SDK 2013 style
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
BreakBeforeBraces: Allman
IndentCaseLabels: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false
AllowShortCaseLabelsOnASingleLine: true