From 28c78d3f9ac957629d00d1b45168285f174bf121 Mon Sep 17 00:00:00 2001 From: github action Date: Sun, 23 Nov 2025 01:21:13 +0000 Subject: [PATCH] Apply 'make format' --- src/V3LinkCells.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/V3LinkCells.cpp b/src/V3LinkCells.cpp index ef385919a..5946a5674 100644 --- a/src/V3LinkCells.cpp +++ b/src/V3LinkCells.cpp @@ -100,7 +100,8 @@ struct LinkCellsState final { // Library lists for specific cells std::unordered_map> m_liblistCell; // Use list for specific cells (libname, cellname) - std::unordered_map>> m_uselistCell; + std::unordered_map>> + m_uselistCell; }; class LinkConfigsVisitor final : public VNVisitor { @@ -130,19 +131,23 @@ class LinkConfigsVisitor final : public VNVisitor { } } else if (nodep->isCell()) { string cellName = nodep->cellp()->name(); - if (VN_IS(nodep->usep(),ParseRef)) { + if (VN_IS(nodep->usep(), ParseRef)) { m_state.m_liblistCell[cellName] = std::vector{}; - for (AstParseRef* usep = VN_AS(nodep->usep(), ParseRef); usep; usep = VN_AS(usep->nextp(), ParseRef)) { + for (AstParseRef* usep = VN_AS(nodep->usep(), ParseRef); usep; + usep = VN_AS(usep->nextp(), ParseRef)) { m_state.m_liblistCell[cellName].push_back(usep->name()); } } else { - m_state.m_uselistCell[cellName] = std::vector>{}; - for (AstConfigUse* usep = VN_AS(nodep->usep(), ConfigUse); usep; usep = VN_AS(usep->nextp(), ConfigUse)) { - m_state.m_uselistCell[cellName].push_back(std::pair{usep->libname(), usep->cellname()}); + m_state.m_uselistCell[cellName] + = std::vector>{}; + for (AstConfigUse* usep = VN_AS(nodep->usep(), ConfigUse); usep; + usep = VN_AS(usep->nextp(), ConfigUse)) { + m_state.m_uselistCell[cellName].push_back( + std::pair{usep->libname(), usep->cellname()}); } } } else { - if (VN_IS(nodep->usep(),ParseRef)) { + if (VN_IS(nodep->usep(), ParseRef)) { nodep->v3warn(E_UNSUPPORTED, "Unsupported: config inst liblist rule"); } else { nodep->v3warn(E_UNSUPPORTED, "Unsupported: config inst use rule");