[clang] Diagnose potential size confusion with VLA params [contd.] (PR #181550)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 08:52:16 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">;
----------------
AaronBallman wrote:
Agreed; we may also want `-Wname-confusion` as a parent group for `-Wname-confusion-array-sizes` and `-Wname-confusion-attribute-whatever` so users can control all name confusion-related diagnostics with a single flag.
https://github.com/llvm/llvm-project/pull/181550
More information about the cfe-commits
mailing list