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 | b4eeaff1595b7d0a8fbc2b3c8bec7dc63f48b7fd (patch) | |
tree | 52c512474b2f51e20585f53e69b876629be44884 /lib/Frontend/BoostConAction.cpp | |
parent | f4e54a2ddf50d81cb761be12ec1381a9f77a9ea9 (diff) |
When we encounter a non-dependent type during template instantiation,
mark any declarations we see inside of that type as
"referenced". Fixes PR7079.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/BoostConAction.cpp')
-rw-r--r-- | lib/Frontend/BoostConAction.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Frontend/BoostConAction.cpp b/lib/Frontend/BoostConAction.cpp index 6995969fdf..ae150c6ec2 100644 --- a/lib/Frontend/BoostConAction.cpp +++ b/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; + } }; } |