[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'avoid-goto' check (PR #143554)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 21 05:19:37 PDT 2025
================
@@ -1,27 +1,34 @@
// RUN: %check_clang_tidy %s cppcoreguidelines-avoid-goto %t
+// RUN: %check_clang_tidy -check-suffix=MACRO %s cppcoreguidelines-avoid-goto %t -- -config="{CheckOptions: { cppcoreguidelines-avoid-goto.IgnoreMacros: true }}"
----------------
vbvictor wrote:
It'll be slightly harder, If I write `check-suffix=,MACRO` for `IgnoreMacros: true` it will try to match all default `chech-messages` that does not ignore macros.
For your suggestion to work, I should write default `CHECK-MESSAGE` with `IgnoreMacros: true` and then add more cases provided by `IgnoreMacros: false`. I'll do that.
https://github.com/llvm/llvm-project/pull/143554
More information about the cfe-commits
mailing list