Add clang-tidy.sh
* This wrapper calls clang-tidy and touch the .tidy file,
and call clang or clang++ to generate the .tidy.d file.
* It combines two ninja jobs into one.
* It runs clang-tidy and clang/clang++ in parallel.
* When RBE is used, this is faster than 2 rewrapper calls.
* Work around RBE bug that mixed stdout and stderr.
* This wrapper puts stdout before stderr.
Bug: 234406661
Test: make tidy-soong_subset with new clang-tidy rule in build/soong/cc.
Change-Id: I861f36d84fbf520b80f4f3a70d3651417606253d
1 file changed