[clang] Diagnose potential size confusion with VLA params [contd.] (PR #181550)

Aryan Kadole via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 12 11:36:09 PDT 2026


================
@@ -1114,7 +1114,8 @@ def VexingParse : DiagGroup<"vexing-parse">;
 def VLAUseStaticAssert : DiagGroup<"vla-extension-static-assert">;
 def VLACxxExtension : DiagGroup<"vla-cxx-extension", [VLAUseStaticAssert]>;
 def VLAExtension : DiagGroup<"vla-extension", [VLACxxExtension]>;
-def VLA : DiagGroup<"vla", [VLAExtension]>;
+def VLASizeConfusion : DiagGroup<"vla-potential-size-confusion">;
----------------
ak1932 wrote:

Alright. So, to confirm all the changes required, we want to change the warning name to `-Wname-confusion-array-sizes` with `-Wname-confusion` as the parent group?

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


More information about the cfe-commits mailing list