Var/Func: Render function parameters using comma, not semicolon

A bit larger follow-up to what Tim pointed out: Function prototype descriptions
previously used semicolons to separate parameters.

Switch to use commas when a RecordType is used as function parameter.
Use existing "func_args" naming for consistency.
This commit is contained in:
Arne Welzel 2023-10-04 16:33:22 +02:00
parent 8ede22f6ec
commit 8109bbc52f
22 changed files with 50 additions and 32 deletions

View file

@ -57,7 +57,7 @@ static bool add_prototype(const IDPtr& id, Type* t, std::vector<AttrPtr>* attrs)
if ( auto p = canon_ft->FindPrototype(*alt_args); p )
{
alt_ft->Error("alternate function prototype already exists", p->args.get());
alt_ft->Error("alternate function prototype already exists", p->args.get(), true);
return false;
}