mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Apply 'make format'
This commit is contained in:
@@ -240,9 +240,7 @@ AstVar* V3ParseGrammar::createVariable(FileLine* fileline, const string& name,
|
||||
} else {
|
||||
nodep->trace(allTracingOn(nodep->fileline()));
|
||||
}
|
||||
if (nodep->varType().isVPIAccessible()) {
|
||||
nodep->addAttrsp(GRAMMARP->cloneScopedSigAttr());
|
||||
}
|
||||
if (nodep->varType().isVPIAccessible()) { nodep->addAttrsp(GRAMMARP->cloneScopedSigAttr()); }
|
||||
|
||||
// Remember the last variable created, so we can attach attributes to it in later parsing
|
||||
GRAMMARP->m_varAttrp = nodep;
|
||||
|
||||
+1
-1
@@ -480,7 +480,7 @@ void V3PreProcImp::comment(const string& text) {
|
||||
string arg = cmd.substr(endOfCmd);
|
||||
while (isspace(arg[0])) arg = arg.substr(1);
|
||||
if (arg.size() && baseCmd == "public_flat_rw_on")
|
||||
baseCmd += "_sns"; // different cmd for applying sensitivity
|
||||
baseCmd += "_sns"; // different cmd for applying sensitivity
|
||||
if (!printed) insertUnreadback("/*verilator " + baseCmd + "*/ " + arg + " /**/");
|
||||
} else {
|
||||
if (!printed) insertUnreadback("/*verilator " + cmd + "*/");
|
||||
|
||||
+2
-2
@@ -273,8 +273,8 @@ public:
|
||||
}
|
||||
|
||||
void setScopedSigAttr(AstNode* attrsp) {
|
||||
if (m_scopedSigAttr) { // clearing set attribute
|
||||
VL_DO_DANGLING(m_scopedSigAttr->deleteTree(), m_scopedSigAttr);
|
||||
if (m_scopedSigAttr) { // clearing set attribute
|
||||
VL_DO_DANGLING(m_scopedSigAttr->deleteTree(), m_scopedSigAttr);
|
||||
}
|
||||
m_scopedSigAttr = attrsp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user