diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-27 05:35:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-27 05:35:12 +0000 |
commit | 51783313799209f9d697dd85efb2395c05c0440c (patch) | |
tree | dfaeb7552ad7b7df3656f701261f1a606cd7410b /clang/lib/Sema/SemaTemplateInstantiateExpr.cpp | |
parent | 2517f334b44bbdd255fd602cdbf74703991e5fd5 (diff) | |
download | bcm5719-llvm-51783313799209f9d697dd85efb2395c05c0440c.tar.gz bcm5719-llvm-51783313799209f9d697dd85efb2395c05c0440c.zip |
Initial stab at a generalized operation for determining the
instantiation of a declaration from the template version (or version
that lives in a template) and a given set of template arguments. This
needs much, much more testing, but it suffices for simple examples
like
typedef T* iterator;
iterator begin();
llvm-svn: 72461
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateExpr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateExpr.cpp b/clang/lib/Sema/SemaTemplateInstantiateExpr.cpp index 9dc14d551ba..a0fc25de922 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateExpr.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateExpr.cpp @@ -108,6 +108,7 @@ TemplateExprInstantiator::VisitUnresolvedFunctionNameExpr( Sema::OwningExprResult TemplateExprInstantiator::VisitDeclRefExpr(DeclRefExpr *E) { + // FIXME: Recast this in terms of Sema::InstantiateDeclRef. Decl *D = E->getDecl(); ValueDecl *NewD = 0; if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { |