add: dev workflow shenanigans
some shit
This commit is contained in:
+19
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user