[PATCH 2/2] Makefile: Enable clang-tidy and clang-analyzer for gcc builds
From: Daniel Thompson
Date: Tue Jun 28 2022 - 08:28:17 EST
It is now possible use clang-tidy and clang-analyzer even if your primary
compiler is gcc. Remove the checks that prevent gcc builds from using
these tools.
Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>
---
Makefile | 6 ------
1 file changed, 6 deletions(-)
diff --git a/Makefile b/Makefile
index 9ea6867aaf9c..0afef56d8203 100644
--- a/Makefile
+++ b/Makefile
@@ -1901,17 +1901,11 @@ targets += $(extmod_prefix)compile_commands.json
PHONY += clang-tidy clang-analyzer
-ifdef CONFIG_CC_IS_CLANG
quiet_cmd_clang_tools = CHECK $<
cmd_clang_tools = $(PYTHON3) $(srctree)/scripts/clang-tools/run-clang-tools.py $@ $<
clang-tidy clang-analyzer: $(extmod_prefix)compile_commands.json
$(call cmd,clang_tools)
-else
-clang-tidy clang-analyzer:
- @echo "$@ requires CC=clang" >&2
- @false
-endif
# Scripts to check various things for consistency
# ---------------------------------------------------------------------------
--
2.35.1