Repository navigation
Expand file tree
/
Copy path.clang-format
More file actions
62 lines (52 loc) · 1.48 KB
/
Copy path.clang-format
File metadata and controls
62 lines (52 loc) · 1.48 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
Language: Cpp
BasedOnStyle: Google
Standard: Latest
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 120
AccessModifierOffset: -4
PointerAlignment: Left
ReferenceAlignment: Left
DerivePointerAlignment: false
BreakBeforeBraces: Attach
Cpp11BracedListStyle: true
SpaceBeforeCpp11BracedList: false
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortLambdasOnASingleLine: Inline
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveAssignments: Consecutive
AlignTrailingComments: true
AlwaysBreakTemplateDeclarations: Yes
SpaceAfterTemplateKeyword: true
BinPackArguments: false
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllArgumentsOnNextLine: true
NamespaceIndentation: None
CompactNamespaces: false
FixNamespaceComments: true
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<(nlohmann/json\.hpp|fastgltf/.*\.hpp)>'
Priority: 1
SortPriority: 1
- Regex: '^<[a-z_]+>$'
Priority: 2
SortPriority: 2
- Regex: '^"(common|include)/'
Priority: 3
SortPriority: 3
- Regex: '^".*"$'
Priority: 4
SortPriority: 4
IndentCaseLabels: true
ReflowComments: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SpaceBeforeParens: ControlStatements
PenaltyReturnTypeOnItsOwnLine: 1000