]> granicus.if.org Git - clang/commit
Allow [[maybe_unused]] on static data members; these are considered variables and...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 12 Apr 2018 12:21:41 +0000 (12:21 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 12 Apr 2018 12:21:41 +0000 (12:21 +0000)
commit010f67d24187508c82d72163ce2d574d5cc04c8e
treeae0c5eccad28c969c3ffe2f7d95e1e9dea326977
parente4c4700eca75dd5a18392d39542697b9e885f2b4
Allow [[maybe_unused]] on static data members; these are considered variables and the attribute should appertain to them.

Patch by S. B. Tam.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329904 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
lib/Sema/SemaDeclAttr.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/p2.cpp