[PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute

Matthias Gehre via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 14:31:45 PDT 2016


mgehre added a comment.

My main goal is to be able to suppress any clang-tidy warning through an attribute. Initially, I though we could reuse the C++ Core Guidelines attribute for that,
(because I though it was plain [[suppress]]). As a bonus (not more), we would have interoperability with other C++ Core Guideline checkers.

But now that I know that it is spelled [[gsl::suppress]], I fear that this is not a good name for a general clang-tidy suppression attribute.
For that, [[clang::suppress]] sounds more reasonable to me.


https://reviews.llvm.org/D24886





More information about the cfe-commits mailing list