-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.clang-format
More file actions
90 lines (79 loc) · 1.92 KB
/
Copy path.clang-format
File metadata and controls
90 lines (79 loc) · 1.92 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# !IMPORTANT!
# If you make changes to this file, make sure that .clang-format in client/of, server/of, and shared/of are updated in turn.
# !IMPORTANT!
BasedOnStyle: Microsoft
Language: Cpp
ColumnLimit: 0
MaxEmptyLinesToKeep: 1
FixNamespaceComments: false
AllowShortCaseLabelsOnASingleLine: true
PackConstructorInitializers: NextLine
ConstructorInitializerIndentWidth: 4
# Alignment
AlignAfterOpenBracket: BlockIndent
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# Braces
AllowShortFunctionsOnASingleLine: true
Cpp11BracedListStyle: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterFunction: true
AfterCaseLabel: true
AfterNamespace: true
SplitEmptyFunction: false
# Indentation
UseTab: AlignWithSpaces
TabWidth: 4
IndentWidth: 4
PPIndentWidth: 0
IndentPPDirectives: None
AccessModifierOffset: -4
IndentCaseLabels: true
NamespaceIndentation: All
ContinuationIndentWidth: 4
# Include Sorting
SortIncludes: Never
# Pointer Alignment
PointerAlignment: Left
# Spaces
SpacesInParens: Never
# Macros
MacroBlockBegin: "^\
AI_BEGIN_CUSTOM_SCHEDULE_PROVIDER|\
AI_BEGIN_CUSTOM_NPC|\
BEGIN_BYTESWAP_DATADESC|\
BEGIN_DATADESC|\
BEGIN_NETWORK_TABLE|\
BEGIN_SEND_TABLE|\
BEGIN_SEND_TABLE_NOBASE|\
BEGIN_SHADER_PARAMS|\
BEGIN_SIMPLE_DATADESC|\
BEGIN_PREDICTION_DATA|\
IMPLEMENT_CLIENTCLASS_DT_NOBASE|\
IMPLEMENT_CLIENTCLASS_DT|\
IMPLEMENT_SERVERCLASS_ST_NOBASE|\
IMPLEMENT_SERVERCLASS_ST|\
MSL_FOREACH_GROUP_BEGIN|\
MSL_FOREACH_SURFACE_IN_GROUP_BEGIN|\
BEGIN_DMXELEMENT_UNPACK|\
CLIENTEFFECT_REGISTER_BEGIN$"
MacroBlockEnd: "^\
AI_END_CUSTOM_SCHEDULE_PROVIDER|\
AI_END_CUSTOM_NPC|\
END_BYTESWAP_DATADESC|\
END_NETWORK_TABLE|\
END_SEND_TABLE|\
END_DATADESC|\
END_SHADER_PARAMS|\
END_RECV_TABLE|\
END_PREDICTION_DATA|\
MSL_FOREACH_GROUP_END|\
MSL_FOREACH_SURFACE_IN_GROUP_END|\
END_DMXELEMENT_UNPACK|\
CLIENTEFFECT_REGISTER_END|\
CLIENTEFFECT_REGISTER_END_CONDITIONAL$"