Skip to content

Commit ad8986f

Browse files
make format
1 parent 8f16ac4 commit ad8986f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

libs/libvtrutil/src/vtr_token.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <cctype>
1414

1515
/// @brief Returns a token type of the given char
16-
static e_token_type get_token_type_from_char( e_token_type cur_token_type, char cur);
16+
static e_token_type get_token_type_from_char(e_token_type cur_token_type, char cur);
1717

1818
const t_token Tokens::null_token_{e_token_type::NULL_TOKEN, ""};
1919

@@ -63,7 +63,7 @@ const t_token& Tokens::operator[](size_t idx) const {
6363
}
6464
}
6565

66-
static e_token_type get_token_type_from_char( e_token_type cur_token_type, char cur) {
66+
static e_token_type get_token_type_from_char(e_token_type cur_token_type, char cur) {
6767
if (std::isspace(cur)) {
6868
return e_token_type::NULL_TOKEN;
6969
} else {

vpr/src/pack/pb_type_graph.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static void check_repeated_edges_at_pb_pin(t_pb_graph_pin* cur_pin);
157157
static bool operator<(const t_pb_graph_edge_comparator& edge1,
158158
const t_pb_graph_edge_comparator& edge2);
159159

160-
161160
/**
162161
* @brief Checks that all pins in a logically-equivalent input port connect to the exact same pins.
163162
*
@@ -1352,7 +1351,7 @@ static bool realloc_and_load_pb_graph_pin_ptrs_at_var(const int line_num,
13521351
(*token_index)++;
13531352
} else {
13541353
(*token_index)++;
1355-
if (tokens[*token_index].type != e_token_type::INT) {
1354+
if (tokens[*token_index].type != e_token_type::INT) {
13561355
return false; // clb[9:abc
13571356
}
13581357
pb_lsb = vtr::atoi(tokens[*token_index].data);
@@ -1391,21 +1390,21 @@ static bool realloc_and_load_pb_graph_pin_ptrs_at_var(const int line_num,
13911390

13921391
if (tokens[*token_index].type == e_token_type::OPEN_SQUARE_BRACKET) {
13931392
(*token_index)++;
1394-
if (tokens[*token_index].type != e_token_type::INT) {
1393+
if (tokens[*token_index].type != e_token_type::INT) {
13951394
return false;
13961395
}
13971396
pb_msb = vtr::atoi(tokens[*token_index].data);
13981397
VTR_ASSERT_MSG(pb_msb >= 0, "Pin most-significant-bit must be non-negative");
13991398
(*token_index)++;
1400-
if (tokens[*token_index].type != e_token_type::COLON) {
1399+
if (tokens[*token_index].type != e_token_type::COLON) {
14011400
if (tokens[*token_index].type != e_token_type::CLOSE_SQUARE_BRACKET) {
14021401
return false;
14031402
}
14041403
pb_lsb = pb_msb;
14051404
(*token_index)++;
14061405
} else {
14071406
(*token_index)++;
1408-
if (tokens[*token_index].type != e_token_type::INT) {
1407+
if (tokens[*token_index].type != e_token_type::INT) {
14091408
return false;
14101409
}
14111410
pb_lsb = vtr::atoi(tokens[*token_index].data);
@@ -1458,28 +1457,28 @@ static bool realloc_and_load_pb_graph_pin_ptrs_at_var(const int line_num,
14581457
const char* port_name = tokens[*token_index].data.c_str();
14591458
(*token_index)++;
14601459

1461-
if (get_pb_graph_pin_from_name(port_name, &pb_node_array[pb_lsb],0) == nullptr) {
1460+
if (get_pb_graph_pin_from_name(port_name, &pb_node_array[pb_lsb], 0) == nullptr) {
14621461
vpr_throw(VPR_ERROR_ARCH, get_arch_file_name(), line_num,
14631462
"Failed to find port name %s", port_name);
14641463
}
14651464

14661465
if (tokens[*token_index].type == e_token_type::OPEN_SQUARE_BRACKET) {
14671466
(*token_index)++;
1468-
if (tokens[*token_index].type != e_token_type::INT) {
1467+
if (tokens[*token_index].type != e_token_type::INT) {
14691468
return false;
14701469
}
14711470
pin_msb = vtr::atoi(tokens[*token_index].data);
14721471
VTR_ASSERT_MSG(pin_msb >= 0, "Pin most-significant-bit must be non-negative");
14731472
(*token_index)++;
1474-
if (tokens[*token_index].type != e_token_type::COLON) {
1473+
if (tokens[*token_index].type != e_token_type::COLON) {
14751474
if (tokens[*token_index].type != e_token_type::CLOSE_SQUARE_BRACKET) {
14761475
return false;
14771476
}
14781477
pin_lsb = pin_msb;
14791478
(*token_index)++;
14801479
} else {
14811480
(*token_index)++;
1482-
if (tokens[*token_index].type != e_token_type::INT) {
1481+
if (tokens[*token_index].type != e_token_type::INT) {
14831482
return false;
14841483
}
14851484
pin_lsb = vtr::atoi(tokens[*token_index].data);

0 commit comments

Comments
 (0)