Update clang-tidy to clang version 8
[alexxy/gromacs.git] / src / gromacs / math / gausstransform.cpp
index 085dbf81ad42b1e7a0b0e80501e531508e3801d1..c3b069c13d42bcea7f9ec0915a9404fb04ee9b62 100644 (file)
@@ -247,7 +247,7 @@ mdspan<const float, dynamic_extent, dynamic_extent>
 OuterProductEvaluator::operator()(ArrayRef<const float> x, ArrayRef<const float> y)
 {
     data_.resize(ssize(x), ssize(y));
-    for (int xIndex = 0; xIndex < ssize(x); ++xIndex)
+    for (gmx::index xIndex = 0; xIndex < ssize(x); ++xIndex)
     {
         const auto xValue = x[xIndex];
         std::transform(std::begin(y), std::end(y), begin(data_.asView()[xIndex]),
@@ -274,7 +274,9 @@ IntegerBox spreadRangeWithinLattice(const IVec &center, dynamicExtents3D extent,
 {
     const IVec begin = rangeBeginWithinLattice(center, range);
     const IVec end   = rangeEndWithinLattice(center, extent, range);
-    return {begin, end};
+    return {
+               begin, end
+    };
 }
 /********************************************************************
  * GaussianSpreadKernel
@@ -394,7 +396,7 @@ void GaussTransform3D::setZero()
     std::fill(begin(impl_->data_), end(impl_->data_), 0.);
 }
 
-const basic_mdspan<const float, dynamicExtents3D> GaussTransform3D::view()
+basic_mdspan<const float, dynamicExtents3D> GaussTransform3D::view()
 {
     return impl_->data_.asConstView();
 }