Use a separate CI step to install clang-format before running it

Also use short `-Yqu` flags like our other invocations
This commit is contained in:
Rangi
2026-04-15 20:12:48 -04:00
parent 185a5c5369
commit b3c3981a90
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -243,12 +243,12 @@ coverage:
# Target used in development to format source code with clang-format.
format:
$Qclang-format -i $$(git ls-files '*.hpp' '*.cpp')
$Qclang-format -i $$(git ls-files '*.[hc]pp')
# Target used in development to check code with clang-tidy.
# Requires Bison-generated header files to exist.
tidy: src/asm/parser.hpp src/link/script.hpp
$Qclang-tidy -p . $$(git ls-files '*.hpp' '*.cpp')
$Qclang-tidy -p . $$(git ls-files '*.[hc]pp')
# Target used in development to remove unused `#include` headers.
iwyu: