[cfe-commits] r155951 - in /cfe/trunk: include/clang/AST/RecursiveASTVisitor.h unittests/Tooling/RecursiveASTVisitorTest.cpp

Richard Smith richard at metafoo.co.uk
Tue May 1 17:05:44 PDT 2012


On Tue, May 1, 2012 at 4:51 PM, Andrew Trick <atrick at apple.com> wrote:

> On May 1, 2012, at 2:58 PM, Richard Smith <richard-llvm at metafoo.co.uk>
> wrote:
>
> > Author: rsmith
> > Date: Tue May  1 16:58:31 2012
> > New Revision: 155951
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=155951&view=rev
> > Log:
> > Fix RecursiveASTVisitor's data recursion to call the Traverse* functions
> if they
> > have been overridden in the derived class. Also, remove a non-functional
> > implementation of an incorrect optimization for ParenExprs.
> >
> > Modified:
> >    cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
> >    cfe/trunk/unittests/Tooling/RecursiveASTVisitorTest.cpp
> >
> > Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
> > URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=155951&r1=155950&r2=155951&view=diff
> >
> ==============================================================================
>
> Richard,
>
> I had to revert this because the following test failure was blocking other
> tests. Let me know if you need more details in order to fix it.
>

I see why this test was failing: libclang's BodyIndexer overrides
TraverseCXXOperatorCallExpr. So the original change which introduced this
test had actually broken part of libclang, which this patch fixed. Do you
have any objection to me reinstating my change and disabling this test?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120501/155b858c/attachment.html>


More information about the cfe-commits mailing list