Skip to content

Commit 9c0579b

Browse files
[Format] Resolved CPP Format Issues
Now that the CI test is fixed, I have resolved all outstanding format issues.
1 parent d8b79d6 commit 9c0579b

File tree

7 files changed

+28
-32
lines changed

7 files changed

+28
-32
lines changed

libs/librtlnumber/src/include/internal_bits.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ constexpr short integer_t_size = (sizeof(integer_t) * 8);
2727
}
2828

2929
#define unroll_1d(lut) \
30-
{lut[_0], lut[_1], lut[_x], lut[_z]}
30+
{ lut[_0], lut[_1], lut[_x], lut[_z] }
3131
#define unroll_2d(lut) \
32-
{unroll_1d(lut[_0]), unroll_1d(lut[_1]), unroll_1d(lut[_x]), unroll_1d(lut[_z])}
32+
{ unroll_1d(lut[_0]), unroll_1d(lut[_1]), unroll_1d(lut[_x]), unroll_1d(lut[_z]) }
3333

3434
#define unroll_1d_invert(lut) \
35-
{l_not[lut[_0]], l_not[lut[_1]], l_not[lut[_x]], l_not[lut[_z]]}
35+
{ l_not[lut[_0]], l_not[lut[_1]], l_not[lut[_x]], l_not[lut[_z]] }
3636
#define unroll_2d_invert(lut) \
37-
{unroll_1d_invert(lut[_0]), unroll_1d_invert(lut[_1]), unroll_1d_invert(lut[_x]), unroll_1d_invert(lut[_z])}
37+
{ unroll_1d_invert(lut[_0]), unroll_1d_invert(lut[_1]), unroll_1d_invert(lut[_x]), unroll_1d_invert(lut[_z]) }
3838

3939
namespace BitSpace {
4040
typedef uint8_t bit_value_t;

vpr/src/base/read_netlist.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ static void sync_clustered_and_atom_netlists(ClusteredNetlist& clb_nlist,
319319
}
320320

321321
static void process_complex_block(pugi::xml_node clb_block,
322-
const ClusterBlockId index,
323-
int& num_primitives,
324-
const pugiutil::loc_data& loc_data,
325-
const std::unordered_map<std::string, int>& logical_block_type_name_to_index,
326-
ClusteredNetlist& clb_nlist) {
322+
const ClusterBlockId index,
323+
int& num_primitives,
324+
const pugiutil::loc_data& loc_data,
325+
const std::unordered_map<std::string, int>& logical_block_type_name_to_index,
326+
ClusteredNetlist& clb_nlist) {
327327
const auto& logical_block_types = g_vpr_ctx.device().logical_block_types;
328328

329329
//Parse cb attributes

vpr/src/pack/prepack.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ static std::vector<t_pack_patterns> alloc_and_load_pack_patterns(const std::vect
169169

170170
std::vector<t_pack_patterns> packing_patterns = alloc_and_init_pattern_list_from_hash(pattern_names);
171171

172-
173172
/* load packing patterns by traversing the edges to find edges belonging to pattern */
174173
for (size_t i = 0; i < pattern_names.size(); i++) {
175174
for (const t_logical_block_type& type : logical_block_types) {

vpr/src/route/check_route.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -740,23 +740,23 @@ static bool check_non_configurable_edges(const Netlist<>& net_list,
740740
//forward/reverse edge is used.
741741
std::vector<t_node_edge> dedupped_difference;
742742
std::ranges::copy_if(difference,
743-
std::back_inserter(dedupped_difference),
744-
[&](t_node_edge forward_edge) {
745-
VTR_ASSERT_MSG(!routing_edges.contains(forward_edge), "Difference should not contain used routing edges");
746-
747-
t_node_edge reverse_edge = {forward_edge.to_node, forward_edge.from_node};
748-
749-
//Check whether the reverse edge was used
750-
if (rr_edges.contains(reverse_edge) && routing_edges.contains(reverse_edge)) {
751-
//The reverse edge exists in the set of rr_edges, and was used
752-
//by the routing.
753-
//
754-
//We can therefore safely ignore the fact that this (forward) edge is un-used
755-
return false; //Drop from difference
756-
} else {
757-
return true; //Keep, this edge should have been used
758-
}
759-
});
743+
std::back_inserter(dedupped_difference),
744+
[&](t_node_edge forward_edge) {
745+
VTR_ASSERT_MSG(!routing_edges.contains(forward_edge), "Difference should not contain used routing edges");
746+
747+
t_node_edge reverse_edge = {forward_edge.to_node, forward_edge.from_node};
748+
749+
//Check whether the reverse edge was used
750+
if (rr_edges.contains(reverse_edge) && routing_edges.contains(reverse_edge)) {
751+
//The reverse edge exists in the set of rr_edges, and was used
752+
//by the routing.
753+
//
754+
//We can therefore safely ignore the fact that this (forward) edge is un-used
755+
return false; //Drop from difference
756+
} else {
757+
return true; //Keep, this edge should have been used
758+
}
759+
});
760760

761761
//At this point only valid missing node pairs are in the set
762762
if (!dedupped_difference.empty()) {

vpr/src/route/rr_graph_generation/rr_graph_intra_cluster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static std::vector<int> get_cluster_block_pins(t_physical_tile_type_ptr physical
202202
bool found_sub_tile = false;
203203

204204
// Iterate over all the sub-tiles to find the sub-tile instance that the cluster block is mapped to.
205-
for (const t_sub_tile& sub_tile: physical_tile->sub_tiles) {
205+
for (const t_sub_tile& sub_tile : physical_tile->sub_tiles) {
206206
if (sub_tile.capacity.is_in_range(sub_tile_index)) {
207207
// This sub-tile type is the one that the cluster block is mapped to.
208208
found_sub_tile = true;

vpr/src/server/taskresolver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "telegramoptions.h"
99
#include <gtk/gtk.h>
1010

11-
1211
#include <ezgl/application.hpp>
1312

1413
namespace server {

vpr/src/util/vpr_utils.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,9 +1372,7 @@ std::tuple<int, int, std::string, std::string> parse_direct_pin_name(std::string
13721372
std::string source_string{src_string};
13731373

13741374
// Replace '.' and '[' characters with ' '
1375-
std::ranges::replace_if(source_string,
1376-
[](char c) noexcept { return c == '.' || c == '[' || c == ':' || c == ']'; },
1377-
' ');
1375+
std::ranges::replace_if(source_string, [](char c) noexcept { return c == '.' || c == '[' || c == ':' || c == ']'; }, ' ');
13781376

13791377
std::istringstream source_iss(source_string);
13801378
int start_pin_index, end_pin_index;

0 commit comments

Comments
 (0)