mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-06 13:38:00 +02:00
build: add format-check and format-fix Makefile targets (#13936)
This commit is contained in:
parent
97ee042757
commit
5bf2bbeda9
1 changed files with 12 additions and 0 deletions
12
Makefile
12
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue