summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/justfile b/justfile
index 8b260d0..d5486eb 100644
--- a/justfile
+++ b/justfile
@@ -1,5 +1,5 @@
cc := "gcc"
-cflags := "-Wall -Wextra -O2"
+cflags := "-Wall -Wextra -O2 -fanalyzer"
src := "src/main.c"
bin := "src/main"
@@ -11,5 +11,8 @@ build:
run: build
./{{bin}}
+check:
+ clang-tidy {{src}} --
+
clean:
rm -f {{bin}} src/*.o