forked from AidanSun05/ImGuiTextSelect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
106 lines (97 loc) · 2.7 KB
/
.clang-format
File metadata and controls
106 lines (97 loc) · 2.7 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
# This file defines the formatting style for ImGuiTextSelect.
# Minimum clang-format version required: 16
ColumnLimit: 120
ReflowComments: true
Standard: Latest
FixNamespaceComments: false
# Indentation
IndentWidth: 4
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
AccessModifierOffset: -4
UseTab: Never
LambdaBodyIndentation: Signature
NamespaceIndentation: All
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentPPDirectives: None
IndentRequiresClause: false
IndentWrappedFunctionNames: false
# Empty lines
MaxEmptyLinesToKeep: 1
SeparateDefinitionBlocks: Always
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
KeepEmptyLinesAtTheStartOfBlocks: false
# Short blocks
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
InsertBraces: false
# Spacing/padding
Cpp11BracedListStyle: false
SpacesInParentheses: false
SpaceInEmptyParentheses: false
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterRequiresInClause: true
AfterRequiresInExpression: true
SpacesBeforeTrailingComments: 1
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInSquareBrackets: false
# Alignment
AlignAfterOpenBracket: DontAlign
AlignOperands: DontAlign
AlignTrailingComments:
Kind: Never
PointerAlignment: Left
ReferenceAlignment: Left
# Packing
BinPackArguments: true
BinPackParameters: true
PackConstructorInitializers: BinPack
# Line breaks
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
BreakBeforeConceptDeclarations: Always
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
RequiresClausePosition: OwnLine
# Sorting
SortUsingDeclarations: true
SortIncludes: CaseInsensitive
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '<[a-z_]+>' # C++ standard headers
Priority: 1
- Regex: '<.+\..+>' # Library headers
Priority: 2
SortPriority: 2
- Regex: '"[^/]+"' # Project headers (current directory)
Priority: 3
SortPriority: 3
- Regex: '".+"' # Project headers
Priority: 3
SortPriority: 4