[PATCH] D116163: [clang-tidy] Add a SuppressedChecks option to ignore diagnostics from specific checks
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 22 06:21:38 PST 2021
carlosgalvezp added a comment.
In D116163#3206473 <https://reviews.llvm.org/D116163#3206473>, @reyg wrote:
> I actually couldn't find a way to black-list specific checks. Is there a way to do that?
Just prepend a dash to the check name that you want to disable:
`checks=cppcoreguidelines-*,-cppcoreguidelines-pro-type-pointer-arithmetic`
This will enable all checks from `cppcoreguidelines` except `cppcoreguidelines-pro-type-pointer-arithmetic`.
Normally you do this with pretty formatting in the `.clang-tidy` file:
Checks: >
cppcoreguidelines*,
-cppcoreguidelines-pro-type-pointer-arithmetic,
-cppcoreguidelines-avoid-c-arrays,
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116163/new/
https://reviews.llvm.org/D116163
More information about the cfe-commits
mailing list