summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* RecursiveASTVisitor:Richard Smith2012-05-091-0/+13
| | | | | | | | | | | | | We don't create any declaration to mark the explicit instantiation of function templates other than the instantiation itself, so visit that when traversing the function template decl. This is a temporary fix, pending the creation of a Decl node to represent the explicit instantiation. Patch by Daniel Jasper! llvm-svn: 156522
* Unrevert r155951, reverted in r155962, with two changes:Richard Smith2012-05-021-0/+36
| | | | | | | | | * Work around build failures due to gcc 4.2 bugs. * Remove BodyIndexer::TraverseCXXOperatorCallExpr, which was not being called prior to this change, and whose presence disables a RecursiveASTVisitor stack space optimization after this change. llvm-svn: 155969
* Revert "Fix RecursiveASTVisitor's data recursion to call the Traverse* ↵Andrew Trick2012-05-011-35/+0
| | | | | | | functions if they" FAIL: Clang :: Index/index-many-call-ops.cpp llvm-svn: 155962
* Fix RecursiveASTVisitor's data recursion to call the Traverse* functions if theyRichard Smith2012-05-011-0/+35
| | | | | | | have been overridden in the derived class. Also, remove a non-functional implementation of an incorrect optimization for ParenExprs. llvm-svn: 155951
* Fix file name in comment.David Blaikie2012-04-261-1/+1
| | | | | | Patch by Yang Chen. llvm-svn: 155658
* RecursiveASTVisitor: When in 'shouldVisitTemplateInstantiations' mode, visitRichard Smith2012-04-251-0/+94
| | | | | | | | | | | all instantiations of a template when we visit the canonical declaration of the primary template, rather than trying to match them up to the partial specialization from which they are instantiated. This fixes a bug where we failed to visit instantiations of partial specializations of member templates of class templates, and naturally extends to allow us to visit instantiations where we have instantiated only a declaration. llvm-svn: 155597
* RecursiveASTVisitor: Visit instantiations of member templates of classRichard Smith2012-04-241-4/+19
| | | | | | | | | | | | | | | | | | templates. In an implicit instantiation of a member class, any member templates don't get instantiated, so the existing check which only visited the instantiations of a defined template skipped these templates' instantiations. Since there is only a single declaration of a member template of a class template specialization, just use that to determine whether to visit the instantiations. This introduces a slight inconsistency in that we will visit the instantiations of such templates whether or not they are defined, but we never visit a declared-but-not-defined instantiation, so this turns out to not matter. Patch by Daniel Jasper! llvm-svn: 155487
* Fix PR12608. Patch contributed by Yang Chen.Manuel Klimek2012-04-231-0/+26
| | | | llvm-svn: 155355
* No need to put the SourceManager in with the ASTContext, as the ASTContextManuel Klimek2012-04-201-3/+1
| | | | | | already contains the SourceManager. llvm-svn: 155198
* Adds a unit test for the RecursiveASTVisitor.Manuel Klimek2012-04-191-0/+215
llvm-svn: 155108
OpenPOWER on IntegriCloud