summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-27 00:57:59 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-27 00:57:59 +0000
commit2408e32096b3219cce1dc58c7b38d299b267b9e8 (patch)
tree90ac2d8faaab7c0688f5b77747c27ab7717c3c73 /clang/lib/Sema/Sema.h
parent633c48ec1d1ccebf1924e3ca2798e067621ca6ee (diff)
downloadbcm5719-llvm-2408e32096b3219cce1dc58c7b38d299b267b9e8.tar.gz
bcm5719-llvm-2408e32096b3219cce1dc58c7b38d299b267b9e8.zip
Make the InjectedClassNameType the canonical type of the current instantiation
of a class template or class template partial specialization. That is to say, in template <class T> class A { ... }; or template <class T> class B<const T*> { ... }; make 'A<T>' and 'B<const T*>' sugar for the corresponding InjectedClassNameType when written inside the appropriate context. This allows us to track the current instantiation appropriately even inside AST routines. It also allows us to compute a DeclContext for a type much more efficiently, at some extra cost every time we write a template specialization (which can be optimized, but I've left it simple in this patch). llvm-svn: 102407
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index 3ea9bd0afa0..212a36f3ccb 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -3047,6 +3047,7 @@ public:
QualType RebuildTypeInCurrentInstantiation(QualType T, SourceLocation Loc,
DeclarationName Name);
+ void RebuildNestedNameSpecifierInCurrentInstantiation(CXXScopeSpec &SS);
std::string
getTemplateArgumentBindingsText(const TemplateParameterList *Params,
OpenPOWER on IntegriCloud