From 46430677dda5092fdf9e0c34273a42d971ea73b4 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 25 Jun 2021 14:36:17 -0400 Subject: [PATCH] Disable clang-tidy --- include/deal.II/lac/la_parallel_vector.h | 6 +++++- include/deal.II/lac/la_parallel_vector.templates.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.5