Commentary

This commit is contained in:
Wilson Snyder 2023-09-17 21:43:00 -04:00
parent b68f101e81
commit 016278a759
4 changed files with 6 additions and 6 deletions

View File

@ -372,8 +372,8 @@ AstNode* AstNode::addNext<AstNode, AstNode>(AstNode* nodep, AstNode* newp) {
void AstNode::addNextHere(AstNode* newp) { void AstNode::addNextHere(AstNode* newp) {
// Add to m_nextp on exact node passed, not at the end. // Add to m_nextp on exact node passed, not at the end.
// This could be at head, tail, or both (single) // 'this' could be at head, tail, or both (single)
// New could be head of single node, or list // 'newp' could be head of single node, or list
UASSERT(newp, "Null item passed to addNext"); UASSERT(newp, "Null item passed to addNext");
UASSERT_OBJ(!newp->backp(), newp, "New node (back) already assigned?"); UASSERT_OBJ(!newp->backp(), newp, "New node (back) already assigned?");
debugTreeChange(this, "-addHereThs: ", __LINE__, false); debugTreeChange(this, "-addHereThs: ", __LINE__, false);

View File

@ -590,8 +590,8 @@ void V3Config::addVarAttr(FileLine* fl, const string& module, const string& ftas
} }
} }
void V3Config::addWaiver(V3ErrorCode code, const string& filename, const string& message) { void V3Config::addWaiver(V3ErrorCode code, const string& filename, const string& match) {
V3ConfigResolver::s().files().at(filename).addWaiver(code, message); V3ConfigResolver::s().files().at(filename).addWaiver(code, match);
} }
void V3Config::applyCase(AstCase* nodep) { void V3Config::applyCase(AstCase* nodep) {

View File

@ -41,7 +41,7 @@ public:
static void addScopeTraceOn(bool on, const string& scope, int levels); static void addScopeTraceOn(bool on, const string& scope, int levels);
static void addVarAttr(FileLine* fl, const string& module, const string& ftask, static void addVarAttr(FileLine* fl, const string& module, const string& ftask,
const string& signal, VAttrType type, AstSenTree* nodep); const string& signal, VAttrType type, AstSenTree* nodep);
static void addWaiver(V3ErrorCode code, const string& filename, const string& message); static void addWaiver(V3ErrorCode code, const string& filename, const string& match);
static void applyCase(AstCase* nodep); static void applyCase(AstCase* nodep);
static void applyCoverageBlock(AstNodeModule* modulep, AstBegin* nodep); static void applyCoverageBlock(AstNodeModule* modulep, AstBegin* nodep);

View File

@ -121,7 +121,7 @@ std::ostream& operator<<(std::ostream& os, VFileContent* contentp);
// File and line number of an object, mostly for error reporting // File and line number of an object, mostly for error reporting
// This class is instantiated for every source code line (potentially millions), and instances // This class is instantiated for every source code line (potentially millions), and instances
// created at any point usually persist until the end of the program. To save space, per-file // created at any point usually persist until the end of the program. To save space, per-file
// information (e.g. filename, source language) is held in tables in the FileLineSingleton class. // information (e.g. filename, source language) is held in tables in the FileLineSingleton class.
// Similarly, message enablement flags are interned in FileLineSingleton. // Similarly, message enablement flags are interned in FileLineSingleton.