Implement support for [[maybe_unused]] in C++1z that is based off existing support...
authorAaron Ballman <aaron@aaronballman.com>
Wed, 9 Mar 2016 16:48:08 +0000 (16:48 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 9 Mar 2016 16:48:08 +0000 (16:48 +0000)
commit0bcd6c1b18d23e0d47d0a9bbc8084547faa9786f
treec2f65a6b7b3572a561d1bb69904265f9cf1ce4a6
parent0da267dd1d6221eb48220912d2f1ea342e407e80
Implement support for [[maybe_unused]] in C++1z that is based off existing support for unused, and treat it as an extension pre-C++1z. This also means extending the existing unused attribute so that it can be placed on an enum and enumerator, in addition to the other subjects.

llvm-svn: 263025
13 files changed:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/AttributeList.h
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Sema/SemaAttr.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p1.cpp [new file with mode: 0644]
clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p2.cpp [new file with mode: 0644]
clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p3.cpp [new file with mode: 0644]
clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p4.cpp [new file with mode: 0644]
clang/www/cxx_status.html