how to only commit successfully fixed files:
- run checks
parallel clang-tidy --enable-check-profile --store-check-profile=clang-tidy-trace -fix '--checks=-\*,modernize-use-ranges' {} ::: src/*.{cpp,h}
- collect failing build error messages
ninja -C build -j 10 -k 0 cataclysm-bn-tiles 2&> build.log
- gather files failed to build
rg 'FAILED:\s*src/.*/(.*).cpp.o' build.log --replace 'src/$1.cpp' -N > ignore.log
- remove them
cat ignore.log | xargs git restore