Skip to content

Commit

Permalink
mpl2: address clang-tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Dec 25, 2023
1 parent bbade1e commit b1ecfdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mpl2/src/hier_rtlmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2420,9 +2420,9 @@ void HierRTLMP::classifyMacrosBasedOnInterconn(
if (macro_interconn_class[j] != -1) {
macro_interconn_class[i] = macro_interconn_class[j];
break;
} else {
macro_interconn_class[j] = i;
}

macro_interconn_class[j] = i;
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/mpl2/src/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ bool Cluster::isSameConnSignature(const Cluster& cluster, float net_threshold)
bool Cluster::isDirectlyConnectedTo(const Cluster& cluster)
{
for (const auto& [cluster_id, num_of_conn] : connection_map_) {
if (cluster_id == cluster.getId())
return true;
if (cluster_id == cluster.getId()) {
return true;
}
}

return false;
Expand Down

0 comments on commit b1ecfdf

Please sign in to comment.