diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-10-23 00:33:27 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-10-26 23:11:31 +0200 |
commit | 5142a53ae12b6cd1069f52c9ec7a258a3ad48bbd (patch) | |
tree | d4a494d535d7cec7ac447141b2bd65a4b2f5b24e | |
parent | a0c2779d613f76a16e49aeba9a199c6d33c168b3 (diff) | |
download | curl-5142a53ae12b6cd1069f52c9ec7a258a3ad48bbd.tar.gz |
lib/Makefile: add a 'tidy' target that runs clang-tidy
-rw-r--r-- | lib/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 4f3c16db4..23fca9148 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -144,3 +144,11 @@ if CURLDEBUG # for debug builds, we scan the sources on all regular make invokes all-local: checksrc endif + +# disable the tests that are mostly causing false positives +TIDYFLAGS=-checks=-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-optin.performance.Padding,-clang-analyzer-valist.Uninitialized,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-core.NullDereference + +TIDY:=clang-tidy + +tidy: + $(TIDY) $(CSOURCES) $(TIDYFLAGS) -- $(AM_CPPFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H |