Update progress and error reporting in clang-tidy (#61672)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61672
This PR adds a progress bar to clang-tidy, and updates how it threads error codes (when run in parallel). The progress bar is disabled on GHA because backspace escape codes are not supported.
It also adds a `--quiet` flag to the script.
Screenshot of progress bar:
<img width="955" alt="Screen Shot 2021-07-14 at 3 17 11 PM" src="https://user-images.githubusercontent.com/40111357/125686114-a8a7c154-3e65-43a8-aa8f-c1fb14d51d27.png">
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D29763848
Pulled By: 1ntEgr8
fbshipit-source-id: cbd352593b279f279911bc3bb8d5ed54abd5f1d5