Skip to content
Snippets Groups Projects
Commit a1c9609d authored by Florian Fischer's avatar Florian Fischer
Browse files

[Make] use tidy make target instead of the meson generated clang-tidy target

The meson generated clang-tidy target uses compile_commands including
all code from subprojects and therefore fails due to code not in our control.
The gitlab CI also uses the tidy make target.
parent 012817ce
No related branches found
No related tags found
No related merge requests found
......@@ -34,21 +34,11 @@ debug:
rm -f build
$(MAKE) build BUILDTYPE=$@
# Meson >= 0.52 will automatically generate a clang-tidy target if a
# .clang-tidy file is found.
# Source version check: https://stackoverflow.com/a/3732456/194894
ifeq ($(shell [ $(MESON_MINOR_VERSION) -ge 52 ] && echo true), true)
STATIC_ANALYSIS_NINJA_TARGETS += clang-tidy
else
$(warning old mesion version $(MESON_VERSION) detected, meson >= 0.52 required for clang-tidy)
endif
.PHONY: fast-static-analysis
fast-static-analysis: all check-format check-license doc
.PHONY: static-analysis
static-analysis: fast-static-analysis iwyu
$(NINJA) -C build $(STATIC_ANALYSIS_NINJA_TARGETS)
static-analysis: fast-static-analysis iwyu tidy
.PHONY: smoke-test-suite
smoke-test-suite: all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment