[PATCH] D45403: Make [[maybe_unused]] work with static data members

S. B. Tam via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 11:06:40 PDT 2018


cpplearner added a comment.

In https://reviews.llvm.org/D45403#1062276, @aaron.ballman wrote:

> I don't think we're currently diagnosing static data members of classes as being unused in the first place; are there plans to implement that functionality so that someone might want to write the attribute there?


Currently, unused static data members are diagnosed when the enclosing class is in an anonymous namespace: https://wandbox.org/permlink/50nTcaESHdjK8pkd (ironically, the message is "unused variable").


Repository:
  rC Clang

https://reviews.llvm.org/D45403





More information about the cfe-commits mailing list