diff options
| author | Ioannis Tzavaras <tzavaras.jannis@gmail.com> | 2026-04-05 01:35:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-04 23:35:25 +0100 |
| commit | 5bf2bbeda94feefab5708bf669130e24d20be4e3 (patch) | |
| tree | 79aa5162e0634050c95f58d71c98916dcb7027d1 /Makefile | |
| parent | 97ee042757d07dad38b98546ddfb005354840c46 (diff) | |
build: add format-check and format-fix Makefile targets (#13936)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -94,6 +94,18 @@ asan: ASAN_OPTIONS="detect_odr_violation=0,log_path=asan.log" HYPRLAND_NO_CRASHREPORTER=1 ./build/Hyprland -c ~/.config/hypr/hyprland.conf +format-check: + @find src hyprctl hyprpm start tests -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \ + ! -path "src/render/shaders/Shaders.hpp" \ + ! -path "hyprctl/hw-protocols/*" | \ + xargs clang-format --dry-run --Werror + +format-fix: + @find src hyprctl hyprpm start tests -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \ + ! -path "src/render/shaders/Shaders.hpp" \ + ! -path "hyprctl/hw-protocols/*" | \ + xargs clang-format -i + test: $(MAKE) debug ./build/hyprtester/hyprtester -c hyprtester/test.conf -b ./build/Hyprland -p hyprtester/plugin/hyprtestplugin.so |
