add: dev workflow shenanigans

some shit
This commit is contained in:
2026-08-29 13:57:59 -04:00
parent c4d4f0b713
commit 5fc2f3e668
10 changed files with 325 additions and 88 deletions
+19 -1
View File
@@ -12,7 +12,25 @@ release: all
bench: release
./benchmarks/test-all.sh
# --- developer conveniences ---
# compile_commands.json for clangd (bear if present, else Makefile-derived).
compile-commands:
./scripts/gen-compile-commands.sh
# Make the code confess to the style guide.
format:
clang-format -i $(fastwc_SOURCES)
# Verify the code already confesses, without touching it.
format-check:
clang-format --dry-run --Werror $(fastwc_SOURCES)
# Static analysis via clang-tidy (needs compile_commands.json).
# Warnings are errors: the style guide is the law.
lint: compile-commands
clang-tidy -p . --warnings-as-errors='*' $(fastwc_SOURCES)
clean-local:
rm -rf bin
.PHONY: release bench
.PHONY: release bench compile-commands format format-check lint