Endill added a comment.
This is an interesting feature!
There's a related `#pragma clang __debug dump`, that dumps name lookup result
or a bit of AST for expression you pass to it
(https://clang.llvm.org/docs/LanguageExtensions.html#debugging-the-compiler). I
think clangd might be interested to
sammccall added a comment.
@kadircet this is a slightly silly feature that I put together on vacation
I'd like your call on whether this is something we should have. If so, feel
free to hand off the review.
It's definitely a power-user feature and nigh undiscoverable. I'd plan to write
some do
sammccall updated this revision to Diff 524519.
sammccall edited the summary of this revision.
sammccall added a comment.
Add demo link
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151166/new/
https://reviews.llvm.org/D151166
Files:
clang-tools
sammccall created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
The idea: you can type in AST matchers,