[clang] [C] Add -Wjump-bypasses-init (PR #138009)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu May 1 18:36:53 PDT 2025


================
@@ -6561,18 +6561,28 @@ def ext_goto_into_protected_scope : ExtWarn<
 def warn_cxx98_compat_goto_into_protected_scope : Warning<
   "jump from this goto statement to its label is incompatible with C++98">,
   InGroup<CXX98Compat>, DefaultIgnore;
+def warn_cpp_compat_goto_into_protected_scope : Warning<
----------------
shafik wrote:

It looks like this diagnostic and the last one are not covered in the test.

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


More information about the cfe-commits mailing list