Fix template instantiation of attributes. More specifically, fix the case
authorDeLesley Hutchins <delesley@google.com>
Wed, 26 Sep 2012 17:57:31 +0000 (17:57 +0000)
committerDeLesley Hutchins <delesley@google.com>
Wed, 26 Sep 2012 17:57:31 +0000 (17:57 +0000)
commitf39c0c2487d518037e9b4b1cd3b913b2f9ec098e
tree60731d943b6035aff2f59407c527a98bdf1ee588
parent2de0a9919be7ceac1aafeb2ad3c3287b2770a575
Fix template instantiation of attributes.  More specifically, fix the case
where an attribute is attached to a forward declaration of a template function,
and refers to parameters of that declaration, but is then inherited by the
definition of that function.  When the definition is instantiated, the
parameter references need to be remapped.

llvm-svn: 164710
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/test/SemaCXX/warn-thread-safety-analysis.cpp