Internals: Fix and enforce brace new constructors. No functional change intended.

This commit is contained in:
Wilson Snyder
2025-08-08 18:21:12 -04:00
parent 1eccfa64b5
commit 3ca1c9b6dd
8 changed files with 28 additions and 18 deletions
+2 -2
View File
@@ -292,8 +292,8 @@ void V3HierBlock::writeParametersFile() const {
*of << "module " << moduleName << ";\n";
for (AstParamTypeDType* const gparam : m_params.gTypeParams()) {
AstTypedef* tdefp
= new AstTypedef(new FileLine{FileLine::builtInFilename()}, gparam->name(), nullptr,
VFlagChildDType{}, gparam->skipRefp()->cloneTreePure(true));
= new AstTypedef{new FileLine{FileLine::builtInFilename()}, gparam->name(), nullptr,
VFlagChildDType{}, gparam->skipRefp()->cloneTreePure(true)};
V3EmitV::verilogForTree(tdefp, *of);
VL_DO_DANGLING(tdefp->deleteTree(), tdefp);
}