[clang] Diagnose potential size confusion with VLA params [contd.] (PR #181550)
Aryan Kadole via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 6 15:50:27 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:
So, for this PR the current `-Wvla-potential-size-confusion` is alright, and a new warning `-Wchanges-meaning` or whatever name we end up using for it for the 2nd case pointed out by @AaronBallman would be the way to go?
https://github.com/llvm/llvm-project/pull/181550
More information about the cfe-commits
mailing list