[cfe-dev] How to match clang::attr::Annotate with specific value?

Andi-Bogdan Postelnicu via cfe-dev cfe-dev at lists.llvm.org
Sun Jul 5 02:00:02 PDT 2020


No, I wasn’t saying this, I was saying you can build a custom matcher like the examples from the Mozilla repo [1].

[1] https://searchfox.org/mozilla-central/source/build/clang-plugin/CustomMatchers.h#22

> On 5 Jul 2020, at 11:57, Yafei Liu <yfliu at mobvoi.com> wrote:
> 
> Hi Andi-Bogdan, do you mean I should do the checking in the MatchCallback, as long as this cannot be done in a matcher?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200705/318e9c80/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200705/318e9c80/attachment.sig>


More information about the cfe-dev mailing list