diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-07 23:12:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-07 23:12:07 +0000 |
commit | 5597ab4076e2bbd8972c9328f79cd1ca9fea17ce (patch) | |
tree | 94bceb6d54dffda74c6930369b06b2c24395ae85 /clang/lib/Frontend/BoostConAction.cpp | |
parent | 6b5897b4de5683967f2bfe37413aaf4668185584 (diff) | |
download | bcm5719-llvm-5597ab4076e2bbd8972c9328f79cd1ca9fea17ce.tar.gz bcm5719-llvm-5597ab4076e2bbd8972c9328f79cd1ca9fea17ce.zip |
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
Diffstat (limited to 'clang/lib/Frontend/BoostConAction.cpp')
-rw-r--r-- | clang/lib/Frontend/BoostConAction.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <cstdio> +#include <iostream> 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; + } }; } |