[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


================
@@ -8025,6 +8025,17 @@ void Parser::ParseParameterDeclarationClause(
         // Consume the keyword.
         ConsumeToken();
       }
+
+      // FunctionTypeBitfields::NumParams can only hold so much.
----------------
cor3ntin wrote:

```suggestion
      // We can only store so many parameters.
```

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


More information about the cfe-commits mailing list