[cfe-dev] RFC: Easier AST Matching by Default

Yitzhak Mandelbaum via cfe-dev cfe-dev at lists.llvm.org
Wed May 27 12:49:20 PDT 2020


Thanks. turns out 2 is a blocker for 1, so I've been working on it today. I
think I'm almost there. I'll send you the patch to review or ask for help
shortly...

On Wed, May 27, 2020 at 3:29 PM Stephen Kelly <steveire at gmail.com> wrote:

>
> On 27/05/2020 16:33, Yitzhak Mandelbaum wrote:
>
> Stephen -- there are three upstream changes that we'll need to fix all of
> our tests:
> 1. Transformers' `applyFirst`, as discussed in the thread on D80606.
> 2. Add an overload of the `traverse` matcher for `DynTypedMatcher`.
> 3. Support `traverse` in the matcher parser (the one used by clang-query).
>
> I'm working on the first one now. But, do you have any thoughts/plans for
> the latter two?
>
> Yes, I started a patch in January for (3), but didn't continue it as the
> RFC stalled from then. I've uploaded it as a WIP patch:
>
>  https://reviews.llvm.org/D80654
>
> I can look into (2) and see if I can finish the patch for (3) in the
> coming days.
>
> Related to (3), note that you can use
>
>  set traversal AsIs
>
> and
>
>  set traversal IgnoreUnlessSpelledInSource
>
> in clang-query now too. It affects matchers and AST dumps.
> Thanks,
>
> Stephen.
>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200527/308240ae/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3854 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200527/308240ae/attachment-0001.bin>


More information about the cfe-dev mailing list