]> granicus.if.org Git - clang/commit
Introduce a sequence number into class template partial
authorDouglas Gregor <dgregor@apple.com>
Fri, 30 Apr 2010 05:56:50 +0000 (05:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 30 Apr 2010 05:56:50 +0000 (05:56 +0000)
commitdc60c1eb4acbde6edcec9760de92f9098593d915
treedcb92305ce572104a838a8a160ad99fbd9476170
parentc743571e24c864b5930ef1290d71b03ccfde80a1
Introduce a sequence number into class template partial
specializations, which keeps track of the order in which they were
originally declared. We use this number so that we can always walk the
list of partial specializations in a predictable order during matching
or template instantiation. This also fixes a failure in Boost.Proto,
where SourceManager::isBeforeInTranslationUnit was behaving
poorly in inconsistent ways.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102693 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
lib/AST/DeclTemplate.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp