Run the pinned clang-format through uvx when the local one differs
FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
The local clang-format on this machine is not the version dftracer-utils pins, and make format and the check script want the pinned one. To check or format touched files, run the pinned version through uv: uvx --from clang-format==<pinned version from scripts/formatting> clang-format --dry-run --Werror <files>, then the same with -i.
Evidence#
dftracer-utils formatting scripts.
Cost accepted#
First confirm the touched files were already clean at HEAD, so -i changes only your own lines.
Also found by searching
- local clang-format is not the pinned version
- make format wants the pinned clang-format
- uvx --from clang-format==<version> clang-format --dry-run --Werror
- confirm touched files were clean at HEAD before -i