[Sema] Set range end of constructors and destructors in template instantiations
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Mon, 28 Nov 2016 11:11:34 +0000 (11:11 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Mon, 28 Nov 2016 11:11:34 +0000 (11:11 +0000)
commit57ae857548bdf8928171aebb9508cb0d9e04ccfe
tree0daadc3067bf32d30914fbbbd7936833284b1942
parent6bed13c5514df06979eb49e096a6dc69942c8edf
[Sema] Set range end of constructors and destructors in template instantiations

Summary:
clang-tidy checks frequently use source ranges of functions.
The source range of constructors and destructors in template instantiations
is currently a single token.
The factory method for constructors and destructors does not allow the
end source location to be specified.
Set end location manually after creating instantiation.

Reviewers: aaron.ballman, rsmith, arphaman

Subscribers: arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D26849

llvm-svn: 288025
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/Misc/ast-dump-decl.cpp