]> granicus.if.org Git - clang/commit
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)
commitd278dbe43aff06865ae3388ba6b4ac5a9d68e179
tree97579dbd1670758712de90789213d7a28bfcda01
parentfb9a0ede96023d18af24ee98854db9606fdafb5c
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164710 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp