Correct the starting location for instantiations of field declarations which
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 May 2012 04:22:22 +0000 (04:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 May 2012 04:22:22 +0000 (04:22 +0000)
commit47ad0171910013a0499e68145a04a977a4d2c9d4
tree7a142d99bcf0de782a1c6375a23a5ad22636e612
parent01ade177e944ba81794fdcaf01c41bd558a31ede
Correct the starting location for instantiations of field declarations which
start with a cv-qualifier. DeclaratorDecl::getTypeSpecStartLoc() does not
produce the location of the first type-specifier (the cv-qualifier) in this
case, because we don't track source locations for cv-qualifiers.

No test here: I've not found a way to test this with a lit-style test, and
introducing a gtest test for this seems unwarranted. Suggestions welcome!

Patch by Daniel Jasper!

llvm-svn: 157311
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp