diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index b25d3bcfd..161460b8b 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -242,7 +242,7 @@ class RandomizeMarkVisitor final : public VNVisitor { // Process a single constraint during nested constraint cloning void processNestedConstraint(AstConstraint* const constrp, AstVarRef* rootVarRefp, - const std::vector& newPath) { + const std::vector& newPath) { if (!constrp) return; AstConstraint* cloneConstrp = constrp->cloneTree(false); @@ -283,11 +283,12 @@ class RandomizeMarkVisitor final : public VNVisitor { std::vector newPath = pathToClass; newPath.push_back(memberVarp); - // Replace all variable references inside the cloned constraint with proper member selections - nestedClassp->foreachMember([&](AstClass* const containingClassp, - AstConstraint* const constrp) { - processNestedConstraint(constrp, rootVarRefp, newPath); - }); + // Replace all variable references inside the cloned constraint with proper + // member selections + nestedClassp->foreachMember( + [&](AstClass* const containingClassp, AstConstraint* const constrp) { + processNestedConstraint(constrp, rootVarRefp, newPath); + }); cloneNestedConstraintsRecurse(rootVarRefp, nestedClassp, newPath); }