summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'src/contrib/SDL-2.30.2/.clang-format')
-rw-r--r--src/contrib/SDL-2.30.2/.clang-format90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.clang-format b/src/contrib/SDL-2.30.2/.clang-format
new file mode 100644
index 0000000..e98e5cd
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/.clang-format
@@ -0,0 +1,90 @@
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_array_for_each",
86 "udev_list_entry_foreach",
87 ]
88
89---
90