[clang] [Sema] Check arg count for builtins with CustomTypeChecking (PR #222841)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 22:01:16 PDT 2026
================
@@ -4195,6 +4193,21 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
if (getLangOpts().HLSL && HLSL().CheckBuiltinFunctionCall(BuiltinID, TheCall))
return ExprError();
+ // check if the builtin has CustomTypeChecking or not, if it dose we get the
+ // already parsed type string of the builtin and compare that with the
+ // caller's passed args and give error for too much args
----------------
shafik wrote:
```suggestion
// caller's passed args and give error for too many args
```
https://github.com/llvm/llvm-project/pull/222841
More information about the cfe-commits
mailing list