Apply 'make format'

This commit is contained in:
github action 2026-05-06 11:26:07 +00:00
parent 22db9d2c66
commit 252afef499
2 changed files with 5 additions and 3 deletions

View File

@ -1279,8 +1279,10 @@ class AstNetlist final : public AstNode {
bool m_timescaleSpecified = false; // Input HDL specified timescale
uint32_t m_nTraceCodes = 0; // Number of trace codes used by design
// Sparse metadata for constants produced from named parameters/localparams. Keep this off
// AstConst itself, as AstConst is a very common node and only a small fraction carry this name.
// AstConst itself, as AstConst is a very common node and only a small fraction carry this
// name.
std::unordered_map<const AstConst*, string> m_constOrigParamNames;
public:
AstNetlist();
ASTGEN_MEMBERS_AstNetlist;

View File

@ -1837,8 +1837,8 @@ void AstNodeExpr::dumpJson(std::ostream& str) const { dumpJsonGen(str); }
AstConst::~AstConst() {
// Only rare constants carry originating parameter-name metadata. For all other AstConst nodes,
// the V3Number bit keeps this destructor from touching AstNetlist's side table. When the bit is
// set, erase the entry before this AstConst address can be reused by a different node.
// the V3Number bit keeps this destructor from touching AstNetlist's side table. When the bit
// is set, erase the entry before this AstConst address can be reused by a different node.
if (m_num.hasOrigParamName()) v3Global.rootp()->astConstOrigParamNameErase(this);
}