From: David Wells Date: Fri, 25 Jun 2021 18:36:17 +0000 (-0400) Subject: Disable clang-tidy X-Git-Tag: v9.4.0-rc1~1176^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46430677dda5092fdf9e0c34273a42d971ea73b4;p=dealii.git Disable clang-tidy --- diff --git a/include/deal.II/lac/la_parallel_vector.h b/include/deal.II/lac/la_parallel_vector.h index 842dfa0b83..a55921da4f 100644 --- a/include/deal.II/lac/la_parallel_vector.h +++ b/include/deal.II/lac/la_parallel_vector.h @@ -284,8 +284,12 @@ namespace LinearAlgebra /** * Move constructor. Uses the swap method. + * + * @note In order for this constructor to leave the moved-from object in a + * valid state it must allocate memory (in this case, an empty + * partitioner) - hence it cannot be marked as noexcept. */ - Vector(Vector &&in_vector); + Vector(Vector &&in_vector); // NOLINT /** * Construct a parallel vector of the given global size without any diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index 7050732328..2df316445a 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -712,7 +712,8 @@ namespace LinearAlgebra template - Vector::Vector(Vector &&v) + Vector::Vector( // NOLINT + Vector &&v) // NOLINT : Vector() { static_cast(*this) = static_cast(v);