]> granicus.if.org Git - clang/commit
Add a new attribute meta-spelling called "GCC" -- it widens into being a GNU spelling...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 27 Jan 2014 22:10:04 +0000 (22:10 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 27 Jan 2014 22:10:04 +0000 (22:10 +0000)
commit2441a740794e619e0b41fd7a49d2c9273369fea0
treecc826bcecb7582937536e97fbab08b270c39159f
parent941bc7df7bd57b659ad77b16b77cc79d747b5c61
Add a new attribute meta-spelling called "GCC" -- it widens into being a GNU spelling, and a CXX11 spelling with the namespace "gnu". It also sets a bit on the spelling certifying that it is known to GCC. From this, we can warn about the extension appropriately. As a consequence, the FunctionDefinition functionality is completely removed.

Replacing the functionality from r199676, which didn't solve the problem as elegantly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200252 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Sema/AttributeList.h
lib/Parse/ParseDecl.cpp
lib/Parse/Parser.cpp
lib/Sema/AttributeList.cpp
utils/TableGen/ClangAttrEmitter.cpp