]> granicus.if.org Git - clang/commit
Split DependentNameType into two types. DependentNameType represents the
authorJohn McCall <rjmccall@apple.com>
Fri, 11 Jun 2010 00:33:02 +0000 (00:33 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 11 Jun 2010 00:33:02 +0000 (00:33 +0000)
commit33500955d731c73717af52088b7fc0e7a85681e7
treed8f4b7ae0d9196e25aa00730f115b0daa888bd75
parent480076c3defdcaf07e8a87c81930da467a702425
Split DependentNameType into two types.  DependentNameType represents the
case of an elaborated-type-specifier like 'typename A<T>::foo', and
DependentTemplateSpecializationType represents the case of an
elaborated-type-specifier like 'typename A<T>::template B<T>'.  The TypeLoc
representation of a DependentTST conveniently exactly matches that of an
ElaboratedType wrapping a TST.

Kill off the explicit rebuild methods for RebuildInCurrentInstantiation;
the standard implementations work fine because the nested name specifier
is computable in the newly-entered context.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105801 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/TemplateBase.h
include/clang/AST/Type.h
include/clang/AST/TypeLoc.h
include/clang/AST/TypeNodes.def
include/clang/Frontend/TypeXML.def
lib/AST/ASTContext.cpp
lib/AST/ASTImporter.cpp
lib/AST/TemplateBase.cpp
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/CodeGen/Mangle.cpp
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHWriter.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h