[PATCH] Adds the equalsBoundNode matcher.

Manuel Klimek klimek at google.com
Thu Jun 20 07:08:14 PDT 2013


On Thu, Jun 20, 2013 at 4:00 PM, Alexander Kornienko <alexfh at google.com>wrote:

>
>   Looks good.
>
>
> ================
> Comment at: include/clang/ASTMatchers/ASTMatchers.h:2298
> @@ +2297,3 @@
> +  TOOLING_COMPILE_ASSERT(
> +    (llvm::is_base_of<Stmt, NodeType>::value) ||
> +    (llvm::is_base_of<Decl, NodeType>::value) ||
> ----------------
> Manuel Klimek wrote:
> > Alexander Kornienko wrote:
> > > Is wrapping this in parens a way to shut up some diagnostic?
> > Yes. This is a macro, which otherwise takes the "," as the start of a
> new parameter.
> Then I'd leave parentheses only around the whole logical expression and
> added a very short comment, so that nobody spends time trying to remove
> them.
>

Used only one set of parens, but I don't think commenting on how C++ works
is a good idea (otherwise, where do we stop).


>
>
> http://llvm-reviews.chandlerc.com/D1009
>
> BRANCH
>   equalsboundnode
>
> ARCANIST PROJECT
>   clang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130620/61bcf516/attachment.html>


More information about the cfe-commits mailing list