Skip to content

Commit

Permalink
🎨 implement clang-tidy suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Aug 28, 2023
1 parent b6aec60 commit 3ea1c74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/fiction/io/print_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ void print_sidb_layout(std::ostream& os, const Lyt& lyt, const bool cs_color = t
already_printed = true;
break;
}
case sidb_charge_state::NONE:
{
break;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion include/fiction/layouts/bounding_box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class bounding_box_2d
int32_t max_y = std::numeric_limits<int32_t>::min();

converted_layout.foreach_cell(
[&converted_layout, &min_x, &max_x, &min_y, &max_y](const auto& c)
[&min_x, &max_x, &min_y, &max_y](const auto& c)
{
if (c.x < min_x)
{
Expand Down
2 changes: 1 addition & 1 deletion test/io/print_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ TEST_CASE("Print Bestagon OR-gate with defect", "[print-charge-layout]")

TEST_CASE("Print layout without charges but defects", "[print-charge-layout]")
{
sidb_cell_clk_lyt layout{{2, 2}};
const sidb_cell_clk_lyt layout{{2, 2}};

sidb_surface<sidb_cell_clk_lyt_siqad> cl{convert_to_siqad_coordinates(layout)};

Expand Down

0 comments on commit 3ea1c74

Please sign in to comment.