[clang] [clang] Diagnose functions with too many parameters (PR #104833)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 13:16:16 PDT 2024


================
@@ -9311,6 +9311,9 @@ def note_constinit_missing_here : Note<
 def err_dimension_expr_not_constant_integer : Error<
   "dimension expression does not evaluate to a constant unsigned int">;
 
+def err_function_parameter_limit_exceeded : Error<
+  "too many function parameters; subsequent parameters are skipped">;
----------------
cor3ntin wrote:

```suggestion
  "too many function parameters; subsequent parameters will be ignored">, DefaultFatal;
```

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


More information about the cfe-commits mailing list