diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-12 15:52:45 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-16 15:45:23 +0200 |
| commit | 1cd627648f439b4964e428a2cedf680fac5ca54b (patch) | |
| tree | ee8777008b0891b5ffa7a02006404871a5588b6f /contrib | |
| parent | 4de7c3826d810e2e3f7f404dc8037ab445d6f2f0 (diff) | |
| download | passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar.gz passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar.bz2 passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar.lz passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar.xz passt-1cd627648f439b4964e428a2cedf680fac5ca54b.tar.zst passt-1cd627648f439b4964e428a2cedf680fac5ca54b.zip | |
Makefile: Use make variables for static checker configuration
Our cppcheck and clang-tidy rules don't really follow normal Makefile
conventions. Usually any commands other than the very basics have their
binary specified in a variable so it can be overridden on the command line
if they're in an unusual location. Implement that for $(CPPCHECK) and
$(CLANG_TIDY)
Likewise flags to tools usually have their own Make variable. Do the same
with $(CLANG_TIDY_FLAGS) and $(CPPCHECK_FLAGS). Note that these only have
the options specifically for the static checker, not compiler flags which
we are also supplying to the static checker - those are derived from
FLAGS / CFLAGS / CPPFLAGS as before.
As part of that we change the probing for --check-level=exhaustive from
being run as part of the cppcheck target, to being run when we build the
CPPCHECK_FLAGS variable. That doesn't make any real difference now, but
will make things nicer if we need multiple cppcheck targets in future (e.g.
for passt-repair).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions
