[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'avoid-goto' check (PR #143554)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 21 04:36:43 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 }}"
----------------
5chmidti wrote:

You don't have to duplicate all dogs for this. You can add a '-MACRO' suffix for the true case and have that match -check-suffix=,MACRO. The empty suffix before the comma will match the dishes that are already here

https://github.com/llvm/llvm-project/pull/143554


More information about the cfe-commits mailing list