mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: clangtidy cleanups. No functional change intended (#7343)
This commit is contained in:
@@ -816,7 +816,7 @@ class AwaitBeforeTrigVisitor final : public VNVisitor {
|
||||
}
|
||||
}
|
||||
}
|
||||
for (VNRef<AstNode> it : toRemove) m_senExprToSenItem.erase(it);
|
||||
for (const VNRef<AstNode> it : toRemove) m_senExprToSenItem.erase(it);
|
||||
}
|
||||
|
||||
// For set of bits indexes (of sensitivity vector) return map from those indexes to set
|
||||
@@ -966,7 +966,8 @@ public:
|
||||
}
|
||||
|
||||
// Fill the function with neccessary statements
|
||||
SenExprBuilder::Results results = m_senExprBuilder.getResultsAndClearUpdates();
|
||||
const SenExprBuilder::Results results
|
||||
= m_senExprBuilder.getResultsAndClearUpdates();
|
||||
for (AstNodeStmt* const stmtsp : results.m_inits) funcp->addStmtsp(stmtsp);
|
||||
for (AstNodeStmt* const stmtsp : results.m_preUpdates) funcp->addStmtsp(stmtsp);
|
||||
funcp->addStmtsp(TriggerKit::createSenTrigVecAssignment(vscp, trigps));
|
||||
@@ -974,8 +975,8 @@ public:
|
||||
for (AstNodeStmt* const stmtsp : results.m_postUpdates) funcp->addStmtsp(stmtsp);
|
||||
}
|
||||
|
||||
std::map<size_t, std::map<size_t, std::vector<AstNodeExpr*>>> usedTrigsToUsingTrees
|
||||
= getUsedTriggersToTrees(usedTriggers);
|
||||
const std::map<size_t, std::map<size_t, std::vector<AstNodeExpr*>>>
|
||||
usedTrigsToUsingTrees = getUsedTriggersToTrees(usedTriggers);
|
||||
usedTriggers.clear();
|
||||
|
||||
// Helper returning expression getting array index `idx` from `scocep` with access
|
||||
|
||||
Reference in New Issue
Block a user