]> granicus.if.org Git - clang/commit
Accept [[gnu::*]] for all __attribute__((*))s which are:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jan 2013 07:53:01 +0000 (07:53 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 Jan 2013 07:53:01 +0000 (07:53 +0000)
commitf7a052732c2b6c82f74708038f75fa92c9b4dba0
tree9a925c78da81ee4900e67300b509194f5a10b63b
parentefaddc0705cfc7c36b76da9ebc33b69843e31996
Accept [[gnu::*]] for all __attribute__((*))s which are:
 1) Supported by Clang, and
 2) Supported by GCC, and
 3) Documented in GCC's manual.

g++ allows its C++11-style attributes to appertain only to the entity being
declared, and never to a type (even for a type attribute), so we do the same.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172382 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/Parser/cxx0x-attributes.cpp