mirror of https://github.com/libsdl-org/SDL
60 lines
1.9 KiB
YAML
60 lines
1.9 KiB
YAML
---
|
|
Checks: >
|
|
-*,
|
|
bugprone-assert-side-effect,
|
|
bugprone-assignment-in-if-condition,
|
|
bugprone-bool-pointer-implicit-conversion,
|
|
bugprone-dangling-handle,
|
|
bugprone-dynamic-static-initializers,
|
|
bugprone-infinite-loop,
|
|
bugprone-integer-division,
|
|
bugprone-macro-repeated-side-effects,
|
|
bugprone-misplaced-operator-in-strlen-in-alloc,
|
|
bugprone-misplaced-pointer-arithmetic-in-alloc,
|
|
bugprone-misplaced-widening-cast,
|
|
bugprone-not-null-terminated-result,
|
|
bugprone-posix-return,
|
|
bugprone-redundant-branch-condition,
|
|
bugprone-string-literal-with-embedded-nul,
|
|
bugprone-suspicious-memset-usage,
|
|
bugprone-suspicious-semicolon,
|
|
bugprone-suspicious-string-compare,
|
|
bugprone-too-small-loop-variable,
|
|
bugprone-unused-return-value,
|
|
cert-err33-c,
|
|
clang-analyzer-core.*,
|
|
clang-analyzer-valist.*,
|
|
clang-analyzer-unix.Malloc,
|
|
clang-diagnostic-*,
|
|
google-readability-casting,
|
|
misc-misleading-bidirectional,
|
|
misc-misleading-identifier,
|
|
misc-misplaced-const,
|
|
misc-redundant-expression,
|
|
objc-*,
|
|
performance-type-promotion-in-math-fn,
|
|
readability-avoid-const-params-in-decls,
|
|
readability-braces-around-statements,
|
|
readability-const-return-type,
|
|
readability-duplicate-include,
|
|
readability-inconsistent-declaration-parameter-name,
|
|
readability-misplaced-array-index,
|
|
readability-non-const-parameter,
|
|
readability-redundant-control-flow,
|
|
readability-redundant-declaration,
|
|
readability-redundant-function-ptr-dereference,
|
|
readability-redundant-preprocessor,
|
|
readability-simplify-boolean-expr
|
|
|
|
CheckOptions:
|
|
- key: bugprone-assert-side-effect.AssertMacros
|
|
value: "SDL_assert, SDL_assert_release, SDL_assert_paranoid, SDL_assert_always, SDL_COMPILE_TIME_ASSERT"
|
|
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
|
|
value: true
|
|
- key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
|
|
value: false # Do not recommend _s functions
|
|
|
|
FormatStyle: "file"
|
|
HeaderFilterRegex: "*.h$"
|
|
WarningsAsErrors: ""
|