Apply 'make format'
This commit is contained in:
parent
0b8a7171ef
commit
6ae6b7817e
|
|
@ -242,7 +242,7 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
|
|
||||||
// Process a single constraint during nested constraint cloning
|
// Process a single constraint during nested constraint cloning
|
||||||
void processNestedConstraint(AstConstraint* const constrp, AstVarRef* rootVarRefp,
|
void processNestedConstraint(AstConstraint* const constrp, AstVarRef* rootVarRefp,
|
||||||
const std::vector<AstVar*>& newPath) {
|
const std::vector<AstVar*>& newPath) {
|
||||||
if (!constrp) return;
|
if (!constrp) return;
|
||||||
|
|
||||||
AstConstraint* cloneConstrp = constrp->cloneTree(false);
|
AstConstraint* cloneConstrp = constrp->cloneTree(false);
|
||||||
|
|
@ -283,11 +283,12 @@ class RandomizeMarkVisitor final : public VNVisitor {
|
||||||
|
|
||||||
std::vector<AstVar*> newPath = pathToClass;
|
std::vector<AstVar*> newPath = pathToClass;
|
||||||
newPath.push_back(memberVarp);
|
newPath.push_back(memberVarp);
|
||||||
// Replace all variable references inside the cloned constraint with proper member selections
|
// Replace all variable references inside the cloned constraint with proper
|
||||||
nestedClassp->foreachMember([&](AstClass* const containingClassp,
|
// member selections
|
||||||
AstConstraint* const constrp) {
|
nestedClassp->foreachMember(
|
||||||
processNestedConstraint(constrp, rootVarRefp, newPath);
|
[&](AstClass* const containingClassp, AstConstraint* const constrp) {
|
||||||
});
|
processNestedConstraint(constrp, rootVarRefp, newPath);
|
||||||
|
});
|
||||||
|
|
||||||
cloneNestedConstraintsRecurse(rootVarRefp, nestedClassp, newPath);
|
cloneNestedConstraintsRecurse(rootVarRefp, nestedClassp, newPath);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue