clang-pure
clang-pure copied to clipboard
AST matcher combinators?
Have you considered implementing https://clang.llvm.org/docs/LibASTMatchersReference.html ?
They are very good at the least for prototyping with clang-check, and it would be nice if one could just transfer that over directly.
Are there any worries of scope creep? I don't know how much of clang is implemented here, but I imagine only a subset is? (I'm still learning my way around the clang project, and I'm not sure how various pieces fit together.)
This type of stuff is very easy with the existing API + lens, take a look at this example.