clang-pure icon indicating copy to clipboard operation
clang-pure copied to clipboard

AST matcher combinators?

Open deliciouslytyped opened this issue 5 years ago • 1 comments

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.)

deliciouslytyped avatar Apr 15 '20 14:04 deliciouslytyped

This type of stuff is very easy with the existing API + lens, take a look at this example.

chpatrick avatar Apr 15 '20 14:04 chpatrick