From 5597ab4076e2bbd8972c9328f79cd1ca9fea17ce Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 7 May 2010 23:12:07 +0000 Subject: When we encounter a non-dependent type during template instantiation, mark any declarations we see inside of that type as "referenced". Fixes PR7079. llvm-svn: 103323 --- clang/lib/Frontend/BoostConAction.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/Frontend/BoostConAction.cpp') diff --git a/clang/lib/Frontend/BoostConAction.cpp b/clang/lib/Frontend/BoostConAction.cpp index 6995969fdf9..ae150c6ec21 100644 --- a/clang/lib/Frontend/BoostConAction.cpp +++ b/clang/lib/Frontend/BoostConAction.cpp @@ -10,6 +10,7 @@ #include "clang/AST/ASTConsumer.h" #include "clang/AST/RecursiveASTVisitor.h" #include +#include using namespace clang; namespace { @@ -19,6 +20,11 @@ namespace { /// HandleTranslationUnit - This method is called when the ASTs for entire /// translation unit have been parsed. virtual void HandleTranslationUnit(ASTContext &Ctx); + + bool VisitCXXRecordDecl(CXXRecordDecl *D) { + std::cout << D->getNameAsString() << std::endl; + return false; + } }; } -- cgit v1.2.3