Create a binary target for clang-tidy. Tested by running:
$ bazel build --config=generic_clang @llvm-project//clang-tools-extra/... $ bazel test --config=generic_clang @llvm-project//clang-tools-extra/... $ bazel run --config=generic_clang @llvm-project//clang-tools-extra/clang-tidy -- --help
These includes look out of order.
Ah I remember having issues like this as well where buildifier wouldn't apply some warnings/fixes like sorting.
It's probably because some warnings/fixes are only raises/applied if -lint is set to warn/fix. Confusingly, the default for that flag is off. Maybe -warnings=all needs to be set as well.