Skip to content

Commit e6b3b9c

Browse files
committed
drt: clang-tidy requested includes
Signed-off-by: osamahammad21 <osama21@aucegypt.edu>
1 parent 3ebe3d2 commit e6b3b9c

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

src/drt/src/db/tech/frLayer.h

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#pragma once
55

66
#include <algorithm>
7+
#include <functional>
78
#include <iostream>
89
#include <map>
910
#include <set>
@@ -623,14 +624,13 @@ class frLayer
623624
{
624625
// This vector should be sorted by area in a descending order
625626
auto area = in->getODBRule()->getArea();
626-
auto it = std::ranges::lower_bound(
627-
lef58AreaConstraints_.begin(),
628-
lef58AreaConstraints_.end(),
629-
area,
630-
std::ranges::greater{},
631-
[](const frLef58AreaConstraint* a) {
632-
return a->getODBRule()->getArea();
633-
});
627+
auto it = std::ranges::lower_bound(lef58AreaConstraints_.begin(),
628+
lef58AreaConstraints_.end(),
629+
area,
630+
std::ranges::greater{},
631+
[](const frLef58AreaConstraint* a) {
632+
return a->getODBRule()->getArea();
633+
});
634634
lef58AreaConstraints_.insert(it, in);
635635
}
636636

@@ -649,14 +649,13 @@ class frLayer
649649
{
650650
// This vector should be sorted by rectwidth in an ascending order
651651
auto rectwidth = in->getODBRule()->getRectWidth();
652-
auto it = std::ranges::lower_bound(
653-
lef58AreaConstraintsRectWidth_.begin(),
654-
lef58AreaConstraintsRectWidth_.end(),
655-
rectwidth,
656-
std::ranges::less{},
657-
[](const frLef58AreaConstraint* a) {
658-
return a->getODBRule()->getRectWidth();
659-
});
652+
auto it = std::ranges::lower_bound(lef58AreaConstraintsRectWidth_.begin(),
653+
lef58AreaConstraintsRectWidth_.end(),
654+
rectwidth,
655+
std::ranges::less{},
656+
[](const frLef58AreaConstraint* a) {
657+
return a->getODBRule()->getRectWidth();
658+
});
660659
lef58AreaConstraintsRectWidth_.insert(it, in);
661660
}
662661

0 commit comments

Comments
 (0)