mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
Add clang-tidy config file
All checks are enabled except for those that cause any warning. This is a starting point, some of the currently-suppressed warnings can be fixed hereafter. Closes #1434
This commit is contained in:
committed by
Tormod Volden
parent
5c64e52554
commit
6cf58bac95
47
.clang-tidy
Normal file
47
.clang-tidy
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
Checks: "-*,\
|
||||
boost-*,\
|
||||
bugprone-*,\
|
||||
-bugprone-assignment-in-if-condition,\
|
||||
-bugprone-branch-clone,\
|
||||
-bugprone-easily-swappable-parameters,\
|
||||
-bugprone-implicit-widening-of-multiplication-result,\
|
||||
-bugprone-macro-parentheses,\
|
||||
-bugprone-misplaced-widening-cast,\
|
||||
-bugprone-narrowing-conversions,\
|
||||
-bugprone-reserved-identifier,\
|
||||
-bugprone-signed-char-misuse,\
|
||||
-bugprone-suspicious-string-compare,\
|
||||
-bugprone-switch-missing-default-case,\
|
||||
-bugprone-unsafe-functions,\
|
||||
-bugprone-too-small-loop-variable,\
|
||||
clang-analyzer-*,\
|
||||
-clang-analyzer-core.NullDereference,\
|
||||
-clang-analyzer-deadcode.DeadStores,\
|
||||
-clang-analyzer-optin.portability.UnixAPI,\
|
||||
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,\
|
||||
-clang-analyzer-security.insecureAPI.strcpy,\
|
||||
-clang-analyzer-unix.Malloc,\
|
||||
misc-*,\
|
||||
-misc-no-recursion,\
|
||||
-misc-include-cleaner,\
|
||||
modernize-*,\
|
||||
-modernize-macro-to-enum,\
|
||||
performance-*,\
|
||||
-performance-no-int-to-ptr,\
|
||||
-performance-type-promotion-in-math-fn,\
|
||||
portability-*,\
|
||||
readability-*,\
|
||||
-readability-braces-around-statements,\
|
||||
-readability-else-after-return,\
|
||||
-readability-identifier-length,\
|
||||
-readability-function-cognitive-complexity,\
|
||||
-readability-inconsistent-declaration-parameter-name,\
|
||||
-readability-isolate-declaration,\
|
||||
-readability-magic-numbers,\
|
||||
-readability-non-const-parameter,\
|
||||
-readability-uppercase-literal-suffix,\
|
||||
-readability-misleading-indentation,\
|
||||
"
|
||||
#WarningsAsErrors: "*"
|
||||
...
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11883
|
||||
#define LIBUSB_NANO 11884
|
||||
|
||||
Reference in New Issue
Block a user