Improve function call argument error to show target function (rewording)

This commit is contained in:
Wilson Snyder
2026-03-04 20:22:25 -05:00
parent c93f5256d4
commit 572f50126b
5 changed files with 14 additions and 14 deletions
+5 -5
View File
@@ -1827,8 +1827,8 @@ V3TaskConnects V3Task::taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp,
<< argp->prettyNameQ() << " in call to " << nodep->taskp()->verilogKwd()
<< " " << nodep->taskp()->prettyNameQ() << '\n'
<< nodep->warnContextPrimary() << '\n'
<< nodep->warnMore() << "... " << ucfirst(nodep->taskp()->verilogKwd())
<< " " << nodep->taskp()->prettyNameQ() << " declared here:\n"
<< nodep->warnMore() << "... Location of " << nodep->taskp()->verilogKwd()
<< " " << nodep->taskp()->prettyNameQ() << " declaration\n"
<< nodep->taskp()->warnContextSecondary());
// We'll just delete it; seems less error prone than making a false argument
VL_DO_DANGLING(argp->unlinkFrBack()->deleteTree(), argp);
@@ -1856,9 +1856,9 @@ V3TaskConnects V3Task::taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp,
<< nodep->taskp()->verilogKwd() << " "
<< nodep->taskp()->prettyNameQ() << '\n'
<< nodep->warnContextPrimary() << '\n'
<< nodep->warnMore() << "... "
<< ucfirst(nodep->taskp()->verilogKwd()) << " "
<< nodep->taskp()->prettyNameQ() << " declared here:\n"
<< nodep->warnMore() << "... Location of "
<< nodep->taskp()->verilogKwd() << " "
<< nodep->taskp()->prettyNameQ() << " declaration:\n"
<< nodep->taskp()->warnContextSecondary());
// We'll just delete it; seems less error prone than making a false argument
VL_DO_DANGLING(argp->unlinkFrBack()->deleteTree(), argp);