[bazel] create a clang-tidy binary target
authorJathu Satkunarajah <jathu.satkunarajah@gmail.com>
Wed, 15 Feb 2023 12:51:52 +0000 (13:51 +0100)
committerAaron Siddhartha Mondal <aaron@eomii.org>
Wed, 15 Feb 2023 12:56:06 +0000 (13:56 +0100)
commitf7028223716640303b568320ae737d90bbe52797
treec6369c89a03807ebd861ef41a73f47b25bcf9005
parent980aa8d740dac77dfe722b04892457b731d1c58b
[bazel] create a clang-tidy binary target

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
```

Reviewed By: #bazel_build, aaronmondal

Differential Revision: https://reviews.llvm.org/D143804
utils/bazel/llvm-project-overlay/clang-tools-extra/clang-tidy/BUILD.bazel [new file with mode: 0644]
utils/bazel/llvm-project-overlay/clang-tools-extra/clang-tidy/defs.bzl [new file with mode: 0644]
utils/bazel/llvm-project-overlay/clang-tools-extra/unittests/BUILD.bazel [new file with mode: 0644]