Skip to content

Commit

Permalink
Commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnyder committed Sep 18, 2023
1 parent b68f101 commit 016278a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/V3Ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ AstNode* AstNode::addNext<AstNode, AstNode>(AstNode* nodep, AstNode* newp) {

void AstNode::addNextHere(AstNode* newp) {
// Add to m_nextp on exact node passed, not at the end.
// This could be at head, tail, or both (single)
// New could be head of single node, or list
// 'this' could be at head, tail, or both (single)
// 'newp' could be head of single node, or list
UASSERT(newp, "Null item passed to addNext");
UASSERT_OBJ(!newp->backp(), newp, "New node (back) already assigned?");
debugTreeChange(this, "-addHereThs: ", __LINE__, false);
Expand Down
4 changes: 2 additions & 2 deletions src/V3Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
V3ConfigResolver::s().files().at(filename).addWaiver(code, message);
void V3Config::addWaiver(V3ErrorCode code, const string& filename, const string& match) {
V3ConfigResolver::s().files().at(filename).addWaiver(code, match);
}

void V3Config::applyCase(AstCase* nodep) {
Expand Down
2 changes: 1 addition & 1 deletion src/V3Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class V3Config final {
static void addScopeTraceOn(bool on, const string& scope, int levels);
static void addVarAttr(FileLine* fl, const string& module, const string& ftask,
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 applyCoverageBlock(AstNodeModule* modulep, AstBegin* nodep);
Expand Down
2 changes: 1 addition & 1 deletion src/V3FileLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ std::ostream& operator<<(std::ostream& os, VFileContent* contentp);

// 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
// information (e.g. filename, source language) is held in tables in the FileLineSingleton class.
// Similarly, message enablement flags are interned in FileLineSingleton.
Expand Down

0 comments on commit 016278a

Please sign in to comment.