mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Use C++14 quoted literal std::string
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ class NameVisitor final : public VNVisitorConst {
|
||||
void rename(AstNode* nodep, bool addPvt) {
|
||||
if (!nodep->user1()) { // Not already done
|
||||
if (addPvt) {
|
||||
const string newname = std::string{"__PVT__"} + nodep->name();
|
||||
const string newname = "__PVT__"s + nodep->name();
|
||||
nodep->name(newname);
|
||||
nodep->editCountInc();
|
||||
} else if (VN_IS(nodep, CFunc) && VN_AS(nodep, CFunc)->isConstructor()) {
|
||||
@@ -54,7 +54,7 @@ class NameVisitor final : public VNVisitorConst {
|
||||
if (rsvd != "") {
|
||||
nodep->v3warn(SYMRSVDWORD,
|
||||
"Symbol matches " + rsvd + ": " << nodep->prettyNameQ());
|
||||
const string newname = std::string{"__SYM__"} + nodep->name();
|
||||
const string newname = "__SYM__"s + nodep->name();
|
||||
nodep->name(newname);
|
||||
nodep->editCountInc();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user