clang-tidy integration: Don't show output if there are compilation errors for the corresponding file
Currently, a clang-tidy job for a file is executed in parallel with the actual compile job. However, if a file has compile errors, I'm not interested in the clang-tidy output. Since the jobs are run in parallel, I often get the clang-tidy error when recompiling a file with compile errors instead of the compiler output if the clang-tidy job finishes before the compile job.
I'd prefer if the clang-tidy output would only be shown once the file has finished compiling without errors. This way, I'm sure to get the actual compiler output if there are compile errors. Once I fix those, I the clang-tidy output and I can continue with fixing the clang-tidy errors/warnings.
Implementing this by delaying the start of the clang-tidy job will increase the build times for the happy path where there are no compile errors. Maybe there's a way to buffer the clang-tidy output until the compile job has finished without errors?