]> granicus.if.org Git - clang/commit
Fix behavior of [[gnu::]] function attributes. Per g++'s behavior, these
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 02:48:13 +0000 (02:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 02:48:13 +0000 (02:48 +0000)
commit5c52166525f8714c3e3a979b156ec23426947fd3
treeffda5f1b208ae7962ffacd1195be22e221c3aa00
parent08e79d2f075d1326ff7a849fd1bc88dadf99d574
Fix behavior of [[gnu::]] function attributes. Per g++'s behavior, these
attributes appertain to a declaration, even though they would be much more
naturally modelled as appertaining to a function type. Previously, we would
try to distribute them from the declarator to the function type, then
reject them for being at an incorrect location. Now, we just distribute them
as far as the declarator; the existing attribute handling code can actually
apply them there just fine.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172504 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/Parser/objcxx11-attributes.mm
test/SemaCXX/cxx11-gnu-attrs.cpp