diff options
| author | Fuwn <[email protected]> | 2024-01-23 19:21:23 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-23 19:21:23 -0800 |
| commit | cce2ef94045b7b89553003a833e78ffed6e37548 (patch) | |
| tree | 19e4fce9c27482ca94e3b9c0e928e12997a2ef00 | |
| parent | ci(ninja): clang format (diff) | |
| download | seiwm-cce2ef94045b7b89553003a833e78ffed6e37548.tar.xz seiwm-cce2ef94045b7b89553003a833e78ffed6e37548.zip | |
chore(ninja): clang tidy
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | build.ninja | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -9,4 +9,5 @@ sei.o drw.o # Ninja -/.ninja_* +.ninja_* +compile_commands.json diff --git a/build.ninja b/build.ninja index 14c1d6f..5a7131e 100644 --- a/build.ninja +++ b/build.ninja @@ -30,6 +30,9 @@ rule link rule clang_format command = clang-format -i -style=LLVM ./*.c ./*.h +rule clang_tidy + command = ninja -t compdb > compile_commands.json && clang-tidy ./*.c ./*.h + build _options: _options build _install: _install build _uninstall: _uninstall @@ -37,6 +40,9 @@ build _uninstall: _uninstall build _format: clang_format build format: phony _format +build _tidy: clang_tidy +build tidy: phony _tidy + build options: phony _options pool = console |