[PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 27 12:15:05 PDT 2016
malcolm.parsons added a subscriber: malcolm.parsons.
malcolm.parsons added a comment.
In https://reviews.llvm.org/D24886#554130, @mgehre wrote:
> 2. Also, I suspect we will want this attribute to also be written on types I was thinking about a case were that was useful, and didn't find any. Which of course doesn't mean that there is none. I will add this.
I would like to suppress cppcoreguidelines-pro-type-union-access for all member functions of a class.
It might be useful to suppress cppcoreguidelines-pro-type-member-init for all constructors of a class.
More information about the cfe-commits