Skip to content

Commit

Permalink
simplify lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Nov 29, 2023
1 parent 5b5e267 commit f2eda97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f2eda97

Please sign in to comment.