From f2eda97f1c457724561ca087ce16ca24af796b15 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Wed, 29 Nov 2023 11:49:18 -0700 Subject: [PATCH] simplify lint --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 009baf2..d413912 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ clean: @$(RM) -rf $(OBJ_DIR) $(LIB_DIR) docs lint: compile_commands.json - /usr/bin/xcrun -r clangd --enable-config --clang-tidy --log=error $(SOURCES:%=--check=%) - ( brew list -q --formula llvm &>/dev/null && $(shell brew --prefix llvm)/bin/scan-build -enable-checker security -enable-checker unix -enable-checker valist $(MAKE) -B dylib ) || true + for file in $(SOURCES); do /usr/bin/xcrun -r clangd --enable-config --clang-tidy --log=error --check=$$file; done + $(shell brew --prefix llvm)/bin/scan-build -enable-checker security -enable-checker unix -enable-checker valist $(MAKE) -B dylib -include $(OBJECTS:.o=.d)