mirror of
https://github.com/curl/curl.git
synced 2026-07-30 20:18:08 +03:00
Makefile: add 'tidy' target that runs clang-tidy
Available in the root, src and lib dirs. Closes #3163
This commit is contained in:
parent
803496fa10
commit
be20814191
3 changed files with 21 additions and 1 deletions
|
|
@ -140,3 +140,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) $(CURL_CFILES) $(TIDYFLAGS) -- $(AM_CPPFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue