[cfe-dev] automatic bind for topmost matcher

Manuel Klimek klimek at google.com
Tue Oct 23 01:44:59 PDT 2012


On Tue, Oct 23, 2012 at 10:37 AM, Philip Craig <philipjcraig at gmail.com>wrote:

> In a MatchCallback, is there any way of determining the topmost node
> that was matched without needing to bind it? This would merely be a
> convenience, similar to the way that regular expressions always return
> the complete match, and you only have to gives names to parts of the
> regular expression if you want the subexpressions.
>

Currently not, as you can always write .bind("x") very easily. What name
would you propose?

Cheers,
/Manuel


> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121023/d621a548/attachment.html>


More information about the cfe-dev mailing list