diff options
author | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
commit | 6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch) | |
tree | 34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/.clang-tidy | |
parent | 8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff) |
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/.clang-tidy')
-rw-r--r-- | src/contrib/SDL-3.2.20/.clang-tidy | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/.clang-tidy b/src/contrib/SDL-3.2.20/.clang-tidy new file mode 100644 index 0000000..b46d0de --- /dev/null +++ b/src/contrib/SDL-3.2.20/.clang-tidy | |||
@@ -0,0 +1,59 @@ | |||
1 | --- | ||
2 | Checks: > | ||
3 | -*, | ||
4 | bugprone-assert-side-effect, | ||
5 | bugprone-assignment-in-if-condition, | ||
6 | bugprone-bool-pointer-implicit-conversion, | ||
7 | bugprone-dangling-handle, | ||
8 | bugprone-dynamic-static-initializers, | ||
9 | bugprone-infinite-loop, | ||
10 | bugprone-integer-division, | ||
11 | bugprone-macro-repeated-side-effects, | ||
12 | bugprone-misplaced-operator-in-strlen-in-alloc, | ||
13 | bugprone-misplaced-pointer-arithmetic-in-alloc, | ||
14 | bugprone-misplaced-widening-cast, | ||
15 | bugprone-not-null-terminated-result, | ||
16 | bugprone-posix-return, | ||
17 | bugprone-redundant-branch-condition, | ||
18 | bugprone-string-literal-with-embedded-nul, | ||
19 | bugprone-suspicious-memset-usage, | ||
20 | bugprone-suspicious-semicolon, | ||
21 | bugprone-suspicious-string-compare, | ||
22 | bugprone-too-small-loop-variable, | ||
23 | bugprone-unused-return-value, | ||
24 | cert-err33-c, | ||
25 | clang-analyzer-core.*, | ||
26 | clang-analyzer-valist.*, | ||
27 | clang-analyzer-unix.Malloc, | ||
28 | clang-diagnostic-*, | ||
29 | google-readability-casting, | ||
30 | misc-misleading-bidirectional, | ||
31 | misc-misleading-identifier, | ||
32 | misc-misplaced-const, | ||
33 | misc-redundant-expression, | ||
34 | objc-*, | ||
35 | performance-type-promotion-in-math-fn, | ||
36 | readability-avoid-const-params-in-decls, | ||
37 | readability-braces-around-statements, | ||
38 | readability-const-return-type, | ||
39 | readability-duplicate-include, | ||
40 | readability-inconsistent-declaration-parameter-name, | ||
41 | readability-misplaced-array-index, | ||
42 | readability-non-const-parameter, | ||
43 | readability-redundant-control-flow, | ||
44 | readability-redundant-declaration, | ||
45 | readability-redundant-function-ptr-dereference, | ||
46 | readability-redundant-preprocessor, | ||
47 | readability-simplify-boolean-expr | ||
48 | |||
49 | CheckOptions: | ||
50 | - key: bugprone-assert-side-effect.AssertMacros | ||
51 | value: "SDL_assert, SDL_assert_release, SDL_assert_paranoid, SDL_assert_always, SDL_COMPILE_TIME_ASSERT" | ||
52 | - key: bugprone-misplaced-widening-cast.CheckImplicitCasts | ||
53 | value: true | ||
54 | - key: bugprone-not-null-terminated-result.WantToUseSafeFunctions | ||
55 | value: false # Do not recommend _s functions | ||
56 | |||
57 | FormatStyle: "file" | ||
58 | HeaderFilterRegex: "*.h$" | ||
59 | WarningsAsErrors: "" | ||