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

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 00:28:10 PST 2025


================
@@ -10333,6 +10334,74 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
       }
     }
 
+    // Loop over the parameters to see if any of the size expressions contains
----------------
cor3ntin wrote:

Can we
 - Put all of that in a separate function
 - Maybe not run it in modes VLAs are not supported

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


More information about the cfe-commits mailing list