Thanks for your detailed response.
This bug covers adding a plugin extension interface to clang-tidy:
Alexander Kornienko's comment about "statically-linked-out-of-tree
checks" seems to be what I am looking for, but that isn't really
documented anywhere that I can find. I'm just not sure where to start
on this since several of the headers are internal to
I also recall that its possible to compile each of the llvm projects
separately, but I am unsure how to configure CMake the use the system
installed version of the libraries, or even if my distribution
installs enough components to do that. I use CMake from time to time,
but I have to admit I am a little intimidated by the 1330 different
CMake settings in the HEAD branch. I also am pretty sure how to use
the system libraries for clang-tools-extra isn't documented anywhere
either. That would get me most of the way towards the kind of
solution that I am looking for.
Aside from that, it is possible to write/generate bindings for the two
steps of clang-tidy (AST Matching followed by Rewriting). You can see an
exploration of that here:
These tools in your talk are amazing! I would love to see them merged
upstream (both to LLVM and to CompilerExplorer).