[clang] Diagnose potential size confusion with VLA params (PR #129772)

Martin Uecker via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 4 22:18:10 PST 2025


uecker wrote:

And a final comment. While the main motivating use case for you may  be VLAs in parameter declarations (although as heavy user of those, I never felt the need for such a warning), it would seem the warning would be  relevant in cases where the arrays are not actually VLAs.  In general, it seems a warning about shadowing a visible identifier somewhere and just having it used with the old definition. So I wonder whether it should be renamed?

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


More information about the cfe-commits mailing list