-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.clang-format
More file actions
112 lines (106 loc) · 3.15 KB
/
.clang-format
File metadata and controls
112 lines (106 loc) · 3.15 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: None
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
AlignOperands: AlignAfterOperator
AlignTrailingComments: Always
AlignEscapedNewlines: Right
AllowAllArgumentsOnNextLine: True
AllowAllParametersOfDeclarationOnNextLine: True
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: True
AllowShortEnumsOnASingleLine: False
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: False
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: True
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: True
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: False
AfterClass: False
AfterControlStatement: Never
AfterEnum: False
AfterFunction: False
AfterNamespace: False
AfterUnion: False
AfterExternBlock: False
BeforeCatch: True
BeforeElse: False
BeforeWhile: False
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: False
BreakStringLiterals: True
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ContinuationIndentWidth: 4
FixNamespaceComments: true
IncludeBlocks: Regroup
IndentAccessModifiers: False
IndentCaseLabels: True
IndentGotoLabels: True
IndentWidth: 4
InsertBraces: True
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: False
MaxEmptyLinesToKeep: 1
Language: Cpp
Standard: C++03
PointerAlignment: Right
SortIncludes: CaseSensitive
SpaceAfterCStyleCast: False
SpaceAfterLogicalNot: False
SpaceBeforeAssignmentOperators: True
SpaceBeforeCaseColon: False
SpaceBeforeParens: ControlStatements
SpaceBeforeSquareBrackets: False
SpaceInEmptyBlock: False
SpaceInEmptyParentheses: False
SpacesBeforeTrailingComments: 1
SpacesInCStyleCastParentheses: False
SpacesInConditionalStatement: False
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
SpacesInParentheses: False
SpacesInSquareBrackets: False
UseTab: Never
WhitespaceSensitiveMacros: [
NW4R_UT_LINKLIST_FOREACH,
NW4R_UT_LINKLIST_FOREACH_SAFE,
NW4R_UT_LIST_FOREACH,
NW4R_UT_LIST_FOREACH_SAFE,
NW4R_EF_LIST_FOREACH,
NW4R_EF_LIST_FOREACH_SAFE
]
AttributeMacros: [DECOMP_INLINE, DECOMP_DONT_INLINE]
# Taken from ogws :)
IncludeCategories:
- Regex: '^<(nw4r|egg|Pack)?(\/)?types' # "Types" headers
Priority: 0
CaseSensitive: true
- Regex: '"egg\/[[:lower:].]+h"' # EGG public headers
Priority: 2
CaseSensitive: true
- Regex: '"nw4r\/[[:lower:].]+h"' # NW4R public headers
Priority: 3
CaseSensitive: true
- Regex: '^"rvl\/[[:upper:].]+h"' # RVL SDK public headers
Priority: 4
CaseSensitive: true
- Regex: '<[[:alnum:].]+>' # STL headers
Priority: 5 # Priority 0 is header mapped to src file
CaseSensitive: true
- Regex: '.*' # All other headers
Priority: 1