-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
100 lines (94 loc) · 2.76 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
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
Language: Cpp
ColumnLimit: '108'
ReflowComments: true
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
EmptyLineBeforeAccessModifier: Always
IndentWrappedFunctionNames: 'false'
AccessModifierOffset: 0
IndentAccessModifiers: true
BinPackParameters: false
BinPackArguments: false
InsertTrailingCommas: Wrapped
PackConstructorInitializers: CurrentLine
AlwaysBreakTemplateDeclarations: Yes
DerivePointerAlignment: true
LambdaBodyIndentation: Signature
AlignOperands: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
AlwaysBreakAfterReturnType: None
TabWidth: '4'
UseTab: Never
IndentPPDirectives: BeforeHash
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignArrayOfStructures: 'Left'
Cpp11BracedListStyle: true
PointerAlignment: Right
ReferenceAlignment: Right
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesInAngles: false
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
SpacesInContainerLiterals: 'false'
SpaceAfterTemplateKeyword: 'true'
IndentCaseLabels: 'true'
NamespaceIndentation: All
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: 'false'
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
BreakStringLiterals: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
SortIncludes: true
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '<.+>' # System/Standard libs
Priority: 1
- Regex: '"raylib.h"' # Criterion headers
Priority: 2
- Regex: '"raylib-cpp.hpp"' # Criterion headers
Priority: 2
- Regex: '".+"' # Any "my_header.h"
Priority: 3
# Sort 'using' declarations
SortUsingDeclarations: true
BasedOnStyle: LLVM
AlwaysBreakBeforeMultilineStrings: 'true'
ContinuationIndentWidth: '4'
SpaceInEmptyBlock: true
IndentWidth: '4'
PenaltyBreakAssignment: '0'
SpaceBeforeCpp11BracedList: 'true'
SpaceBeforeRangeBasedForLoopColon: 'true'
# To totally disable format
DisableFormat: 'false'