@@ -17,7 +17,7 @@ namespace odb {
1717
1818std::string UnfoldedChip::getName () const
1919{
20- std::string name = " " ;
20+ std::string name;
2121 int index = 0 ;
2222 for (auto chip_inst : chip_inst_path) {
2323 name += chip_inst->getName ();
@@ -54,7 +54,7 @@ void Checker::unfoldChip(odb::dbChipInst* chip_inst, UnfoldedChip unfolded_chip)
5454 } else {
5555 // calculate the cuboid of the chip
5656 unfolded_chip.cuboid = chip_inst->getMasterChip ()->getCuboid ();
57- for (auto chip_inst : std::views::reverse (unfolded_chip. chip_inst_path ) ) {
57+ for (auto chip_inst : unfolded_chip. chip_inst_path | std::views::reverse) {
5858 chip_inst->getTransform ().apply (unfolded_chip.cuboid );
5959 }
6060 debugPrint (
@@ -134,12 +134,11 @@ void Checker::checkFloatingChips(odb::dbMarkerCategory* category)
134134 insts_sets.emplace_back (chips);
135135 }
136136
137- std::sort (insts_sets.begin (),
138- insts_sets.end (),
139- [](const std::vector<UnfoldedChip*>& a,
140- const std::vector<UnfoldedChip*>& b) {
141- return a.size () > b.size ();
142- });
137+ std::ranges::sort (insts_sets,
138+ [](const std::vector<UnfoldedChip*>& a,
139+ const std::vector<UnfoldedChip*>& b) {
140+ return a.size () > b.size ();
141+ });
143142
144143 odb::dbMarkerCategory* floating_chips_category
145144 = odb::dbMarkerCategory::createOrReplace (category, " Floating chips" );
0 commit comments