[cfe-dev] RFC: What does this matcher mean to you?

Gábor Kozár kozargabor at gmail.com
Tue May 21 10:56:16 PDT 2013


I don't feel that it would be intuitive. I can see the logic behind the
behavior you're describing, but I still feel that an assertion would be the
way to go.
(But of course this is very subjective.)


2013/5/21 Vane, Edwin <edwin.vane at intel.com>

>
> > -----Original Message-----
> > From: Gábor Kozár [mailto:kozargabor at gmail.com]
> > Sent: Tuesday, May 21, 2013 1:35 PM
> > To: Vane, Edwin
> > Cc: Clang Dev List (cfe-dev at cs.uiuc.edu)
> > Subject: Re: [cfe-dev] RFC: What does this matcher mean to you?
> >
> > I would expect it the equalsBoundNode("declType") to either:
> >
> >  - raise an error (assertion failure or exception) or
> >  - check all nodes bound to "declType", and return true if any of them
> is equal
>
> An assertion instead of just not matching anything?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130521/38824651/attachment.html>


More information about the cfe-dev mailing list