summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/.clang-format
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/.clang-format
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/.clang-format')
-rw-r--r--src/contrib/SDL-3.2.20/.clang-format91
1 files changed, 91 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/.clang-format b/src/contrib/SDL-3.2.20/.clang-format
new file mode 100644
index 0000000..4e932d0
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/.clang-format
@@ -0,0 +1,91 @@
1---
2AlignConsecutiveMacros: Consecutive
3AlignConsecutiveAssignments: None
4AlignConsecutiveBitFields: None
5AlignConsecutiveDeclarations: None
6AlignEscapedNewlines: Right
7AlignOperands: Align
8AlignTrailingComments: true
9
10AllowAllArgumentsOnNextLine: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortEnumsOnASingleLine: true
13AllowShortBlocksOnASingleLine: Never
14AllowShortCaseLabelsOnASingleLine: false
15AllowShortFunctionsOnASingleLine: All
16AllowShortIfStatementsOnASingleLine: Never
17AllowShortLoopsOnASingleLine: false
18
19AlwaysBreakAfterDefinitionReturnType: None
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: MultiLine
23
24# Custom brace breaking
25BreakBeforeBraces: Custom
26BraceWrapping:
27 AfterCaseLabel: true
28 AfterClass: true
29 AfterControlStatement: Never
30 AfterEnum: true
31 AfterFunction: true
32 AfterNamespace: true
33 AfterObjCDeclaration: true
34 AfterStruct: true
35 AfterUnion: true
36 AfterExternBlock: false
37 BeforeElse: false
38 BeforeWhile: false
39 IndentBraces: false
40 SplitEmptyFunction: true
41 SplitEmptyRecord: true
42
43# Make the closing brace of container literals go to a new line
44Cpp11BracedListStyle: false
45
46# Never format includes
47IncludeBlocks: Preserve
48# clang-format version 4.0 through 12.0:
49#SortIncludes: false
50# clang-format version 13.0+:
51#SortIncludes: Never
52
53# No length limit, in case it breaks macros, you can
54# disable it with /* clang-format off/on */ comments
55ColumnLimit: 0
56
57IndentWidth: 4
58ContinuationIndentWidth: 4
59IndentCaseLabels: false
60IndentCaseBlocks: false
61IndentGotoLabels: true
62IndentPPDirectives: None
63IndentExternBlock: NoIndent
64
65PointerAlignment: Right
66SpaceAfterCStyleCast: false
67SpacesInCStyleCastParentheses: false
68SpacesInConditionalStatement: false
69SpacesInContainerLiterals: true
70SpaceBeforeAssignmentOperators: true
71SpaceBeforeCaseColon: false
72SpaceBeforeParens: ControlStatements
73SpaceAroundPointerQualifiers: Default
74SpaceInEmptyBlock: false
75SpaceInEmptyParentheses: false
76
77UseCRLF: false
78UseTab: Never
79
80ForEachMacros:
81 [
82 "spa_list_for_each",
83 "spa_list_for_each_safe",
84 "wl_list_for_each",
85 "wl_list_for_each_safe",
86 "wl_array_for_each",
87 "udev_list_entry_foreach",
88 ]
89
90---
91