SDL
/
.clang-tidy
59 строк · 1.9 Кб
1---
2Checks: >
3-*,
4bugprone-assert-side-effect,
5bugprone-assignment-in-if-condition,
6bugprone-bool-pointer-implicit-conversion,
7bugprone-dangling-handle,
8bugprone-dynamic-static-initializers,
9bugprone-infinite-loop,
10bugprone-integer-division,
11bugprone-macro-repeated-side-effects,
12bugprone-misplaced-operator-in-strlen-in-alloc,
13bugprone-misplaced-pointer-arithmetic-in-alloc,
14bugprone-misplaced-widening-cast,
15bugprone-not-null-terminated-result,
16bugprone-posix-return,
17bugprone-redundant-branch-condition,
18bugprone-string-literal-with-embedded-nul,
19bugprone-suspicious-memset-usage,
20bugprone-suspicious-semicolon,
21bugprone-suspicious-string-compare,
22bugprone-too-small-loop-variable,
23bugprone-unused-return-value,
24cert-err33-c,
25clang-analyzer-core.*,
26clang-analyzer-valist.*,
27clang-analyzer-unix.Malloc,
28clang-diagnostic-*,
29google-readability-casting,
30misc-misleading-bidirectional,
31misc-misleading-identifier,
32misc-misplaced-const,
33misc-redundant-expression,
34objc-*,
35performance-type-promotion-in-math-fn,
36readability-avoid-const-params-in-decls,
37readability-braces-around-statements,
38readability-const-return-type,
39readability-duplicate-include,
40readability-inconsistent-declaration-parameter-name,
41readability-misplaced-array-index,
42readability-non-const-parameter,
43readability-redundant-control-flow,
44readability-redundant-declaration,
45readability-redundant-function-ptr-dereference,
46readability-redundant-preprocessor,
47readability-simplify-boolean-expr
48
49CheckOptions:
50- key: bugprone-assert-side-effect.AssertMacros
51value: "SDL_assert, SDL_assert_release, SDL_assert_paranoid, SDL_assert_always, SDL_COMPILE_TIME_ASSERT"
52- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
53value: true
54- key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
55value: false # Do not recommend _s functions
56
57FormatStyle: "file"
58HeaderFilterRegex: "*.h$"
59WarningsAsErrors: ""
60