]> granicus.if.org Git - clang/commit
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)
commitba9f6803ce54c7d960732400b3fd8f364788c33b
tree6bdbb40dd96665d7c6829b1c129f7b9ade24baa2
parenta4a149223dcbe73632b037fd5694c8589d5ee8d5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263025 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p1.cpp [new file with mode: 0644]
test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p2.cpp [new file with mode: 0644]
test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p3.cpp [new file with mode: 0644]
test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p4.cpp [new file with mode: 0644]
www/cxx_status.html