From 67b46c64200842f0de995854e5f11b9add7a013f Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sat, 19 Aug 2023 19:37:30 +0200 Subject: Add clang-tidy linting, callable with make lint. --- makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index 329f3f9..ee78938 100644 --- a/makefile +++ b/makefile @@ -72,6 +72,9 @@ build: $(SRC) $(PLUGS) $(CONFIG) GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ $(CC) $(WARNINGS) $(OPTIMIZED) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK) +lint: + clang-tidy $(SRC) $(PLUGS) -- -Wall -O3 `pkg-config --cflags 'webkit2gtk-4.0'` -o rose `pkg-config --libs 'webkit2gtk-4.0'` + inspect: build GTK_DEBUG=interactive ./rose -- cgit v1.2.3