Since a few versions ago (it definitely works on LLVM 12), progress bar rendering has been affected by new lines added after each translation unit. This is caused by the fact that Clang writes to the stdout through it's llvm::errs() method.
This should be fixed as it makes the progress bar output during diagram generation difficult to follow...