Skip to content

Commit 0b526ab

Browse files
committed
make format
1 parent 04bb518 commit 0b526ab

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

libs/libvtrutil/src/tl_optional.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ struct is_nothrow_swappable
281281

282282
// std::void_t from C++17
283283
template<class...>
284-
struct voider { using type = void; };
284+
struct voider {
285+
using type = void;
286+
};
285287
template<class... Ts>
286288
using void_t = typename voider<Ts...>::type;
287289

@@ -514,7 +516,7 @@ struct optional_copy_assign_base<T, false> : optional_move_base<T> {
514516
// to make do with a non-trivial move assignment operator even if T is trivially
515517
// move assignable
516518
#ifndef TL_OPTIONAL_GCC49
517-
template<class T, bool = std::is_trivially_destructible<T>::value&& std::is_trivially_move_constructible<T>::value&& std::is_trivially_move_assignable<T>::value>
519+
template<class T, bool = std::is_trivially_destructible<T>::value && std::is_trivially_move_constructible<T>::value && std::is_trivially_move_assignable<T>::value>
518520
struct optional_move_assign_base : optional_copy_assign_base<T> {
519521
using optional_copy_assign_base<T>::optional_copy_assign_base;
520522
};
@@ -537,7 +539,7 @@ struct optional_move_assign_base<T, false> : optional_copy_assign_base<T> {
537539

538540
optional_move_assign_base&
539541
operator=(optional_move_assign_base&& rhs) noexcept(
540-
std::is_nothrow_move_constructible<T>::value&& std::is_nothrow_move_assignable<T>::value) {
542+
std::is_nothrow_move_constructible<T>::value && std::is_nothrow_move_assignable<T>::value) {
541543
this->assign(std::move(rhs));
542544
return *this;
543545
}
@@ -1241,7 +1243,7 @@ class optional : private detail::optional_move_assign_base<T>,
12411243
/// If one has a value, it is moved to the other and the movee is left
12421244
/// valueless.
12431245
void
1244-
swap(optional& rhs) noexcept(std::is_nothrow_move_constructible<T>::value&& detail::is_nothrow_swappable<T>::value) {
1246+
swap(optional& rhs) noexcept(std::is_nothrow_move_constructible<T>::value && detail::is_nothrow_swappable<T>::value) {
12451247
using std::swap;
12461248
if (has_value()) {
12471249
if (rhs.has_value()) {

libs/libvtrutil/src/vtr_memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void free_chunk_memory(t_chunk* chunk_info) {
164164
while (curr_ptr != nullptr) {
165165
/* Must cast pointers to type char*, since the're of type void*, which delete can't
166166
* be called on.*/
167-
delete[]((char*)curr_ptr->data_vptr); /* Free memory "chunk". */
167+
delete[] ((char*)curr_ptr->data_vptr); /* Free memory "chunk". */
168168
prev_ptr = curr_ptr;
169169
curr_ptr = curr_ptr->next;
170170
delete (t_linked_vptr*)prev_ptr; /* Free memory used to track "chunk". */

vpr/src/pack/pb_type_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ static bool realloc_and_load_pb_graph_pin_ptrs_at_var(const int line_num,
14971497

14981498
if (prev_num_pins > 0) {
14991499
std::vector<t_pb_graph_pin*> temp(*pb_graph_pins, *pb_graph_pins + prev_num_pins);
1500-
delete[] * pb_graph_pins;
1500+
delete[] *pb_graph_pins;
15011501
*pb_graph_pins = new t_pb_graph_pin*[*num_pins];
15021502
for (i = 0; i < prev_num_pins; i++)
15031503
(*pb_graph_pins)[i] = temp[i];

vpr/src/place/placement_log_printer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void PlacementLogPrinter::print_post_placement_stats() const {
239239
VTR_LOG("\n");
240240
double estimated_wirelength = placer_.net_cost_handler_.get_total_wirelength_estimate();
241241
VTR_LOG("BB estimate of min-dist (placement) wire length: %.0f\n", estimated_wirelength);
242-
242+
243243
if (placer_.placer_opts_.place_algorithm.is_timing_driven()) {
244244
//Final timing estimate
245245
VTR_ASSERT(placer_.timing_info_);

0 commit comments

Comments
 (0)