diff --git a/Dockerfiles/archlinux b/Dockerfiles/archlinux index d4274a46..8743a7c4 100644 --- a/Dockerfiles/archlinux +++ b/Dockerfiles/archlinux @@ -3,5 +3,5 @@ FROM archlinux:base-devel RUN pacman -Syu --noconfirm && \ - pacman -S --noconfirm git meson base-devel libinput wayland wayland-protocols glib2-devel pixman libxkbcommon mesa gtkmm3 jsoncpp pugixml scdoc libpulse libdbusmenu-gtk3 libmpdclient gobject-introspection libxkbcommon playerctl iniparser fftw && \ + pacman -S --noconfirm git meson base-devel libinput wayland wayland-protocols glib2-devel pixman libxkbcommon mesa gtkmm3 jsoncpp pugixml scdoc libpulse libdbusmenu-gtk3 libmpdclient gobject-introspection libxkbcommon playerctl iniparser fftw clang && \ sed -Ei 's/#(en_(US|GB)\.UTF)/\1/' /etc/locale.gen && locale-gen diff --git a/Makefile b/Makefile index 12af8e0e..54e72ce0 100644 --- a/Makefile +++ b/Makefile @@ -27,5 +27,10 @@ test-detailed: meson test -C build --verbose --print-errorlogs --test-args='--reporter console -s' .PHONY: test-detailed +format: + git diff --name-only --diff-filter=ACMR | \ + grep -E '\.(c|h|cpp|hpp)$$' | \ + xargs -r clang-format -i + clean: rm -rf build