Internals: clangtidy cleanups. No functional change intended (#7343)

This commit is contained in:
Wilson Snyder
2026-03-27 23:14:18 -04:00
committed by GitHub
parent 82c817d425
commit 31757df229
139 changed files with 1089 additions and 1238 deletions
+2 -2
View File
@@ -307,7 +307,7 @@ private:
string indent() const { return string(m_depth, ':') + " "; }
void visit(AstNode* nodep) override {
++m_depth;
if (unsigned costPlus1 = nodep->user2()) {
if (const unsigned costPlus1 = nodep->user2()) {
*m_osp << " " << indent() << "cost " << std::setw(6) << std::left << (costPlus1 - 1)
<< " " << nodep << '\n';
iterateChildrenConst(nodep);
@@ -320,6 +320,6 @@ private:
uint32_t V3InstrCount::count(AstNode* nodep, bool assertNoDups, std::ostream* osp) {
const InstrCountVisitor visitor{nodep, assertNoDups, osp};
if (osp) InstrCountDumpVisitor dumper{nodep, osp};
if (osp) const InstrCountDumpVisitor dumper{nodep, osp};
return visitor.instrCount();
}