]> granicus.if.org Git - clang/commit
When we start the definition of a class template, set the
authorDouglas Gregor <dgregor@apple.com>
Fri, 30 Apr 2010 04:39:27 +0000 (04:39 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 30 Apr 2010 04:39:27 +0000 (04:39 +0000)
commit9ffce2182e4fe72052d620698d272207f494b1cf
tree0924d704e6d3e14437ba6eeedef753d5b595310d
parenta8b4a1e26ae91e5113892702c5a6a2824adca777
When we start the definition of a class template, set the
InjectedClassNameType's Decl to point at the definition. It's a little
messy, but we do the same thing with classes and their record types,
since much of Clang expects that the TagDecl* one gets out of a type
is the definition. Fixes several Boost.Proto failures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102691 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
lib/AST/Decl.cpp
test/SemaTemplate/injected-class-name.cpp