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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 13:59:57 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">;
----------------
Endilll wrote:

I changed the wording, but I don't agree with `DefaultFatal`. We use it very sparingly (only 51 result across all of our diagnostics), and now we're successfully recovering.
CC @AaronBallman 

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


More information about the cfe-commits mailing list