[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:44 PDT 2025
================
@@ -50,3 +50,12 @@ Modern C++ needs ``goto`` only to jump out of nested loops.
some_operation();
All other uses of ``goto`` are diagnosed in `C++`.
+
+
+Options
+-------
+
+.. option:: IgnoreMacros
+
+ If set to `true`, the check will not warn if ``goto`` statement is placed
----------------
5chmidti wrote:
I think 'expanded from a macro ' sounds better than 'placed'
---
'if a go-to statement'
https://github.com/llvm/llvm-project/pull/143554
More information about the cfe-commits
mailing list