kamping-site / kamping

KaMPIng: (Near) zero-overhead MPI wrapper for modern C++
https://kamping-site.github.io/kamping/
GNU Lesser General Public License v3.0
28 stars 0 forks source link

Fix code formatting #119

Open DanielSeemaier opened 2 years ago

DanielSeemaier commented 2 years ago

Bad formatting:

template <typename T, typename S>
 struct is_builtin_mpi_op<
     kamping::ops::min<S>, T,
     typename std::enable_if<(std::is_same_v<S, void> || std::is_same_v<T, S>)&&(
         mpi_type_traits<T>::is_integer || mpi_type_traits<T>::is_float)>::type> : std::true_type {
     static MPI_Op op() {
         return MPI_MIN;
     }
 };

Bad formatting:

template <int is_commutative>
 struct UserOperationPtr {
     void operator=(UserOperationPtr<is_commutative>&) = delete;
     void operator                                     =(UserOperationPtr<is_commutative>&& other_op) {
         this->mpi_op   = other_op.mpi_op;
DanielSeemaier commented 2 years ago

Second problem will be fixed with clang-format 15