Revert "[clang-tidy] support query based custom check" (#159380)

Reverts llvm/llvm-project#131804.

This breaks a build bot; see discussion in the original PR. I could
reproduce this problem locally. The problem is that the original PR
makes use of `registerCustomChecks` in `ClangTidy.cpp` but does not add
the new custom module to the dependencies of the target that builds that
file. Adding the dependency would create a cyclic dependency, so the fix
doesn't seem obvious. See details in the PR description.

GitOrigin-RevId: 6fdecaa7709a395c3ad5f47928f0290fbd0446c9
35 files changed