* ci(clang-tidy): analyse each source file once
* fix(clang-tidy): print a failure command that still reproduces
The failure line printed -p with the temporary deduplicated database, which is deleted when the script exits, so pasting the command failed to load a compilation database. Print the build's own database instead.
Assisted-by: Claude:claude-opus-5-5
* fix(clang-tidy): remove the temporary directories on every exit
The deduplicated database directory and the -fix export directory were only removed on the normal path, so an exception such as an invalid -exclude regex or a missing clang-apply-replacements left them in $TMPDIR. Ctrl-C keeps its explicit removal because it ends with SIGKILL, which skips atexit.
Assisted-by: Claude:claude-opus-5-5
---------
Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com>