.PHONY: format
format:
@echo $(non_third_party_headers) $(non_third_party_sources) $(test_sources) | xargs -n1 -P8 \
- misc/clang-format.sh
+ misc/run-clang-format
# Not using parallel execution because target is most likely being run on non-interactive CI system,
# so no user is waiting for immediate results, and it avoids possibly interleaved output.
check_format:
@[ -t 1 ] && export cf_diff_color="--color=always"; \
echo $(non_third_party_headers) $(non_third_party_sources) $(test_sources) | xargs -n1 -P1 \
- misc/clang-format.sh --check || \
+ misc/run-clang-format --check || \
{ echo; echo "Error: Sources are not formatted with clang-format."; \
echo 'Run "make format" or apply the above diff.'; }