From 217edd27bda8f91ed1a8b8f59ac4e144d15c1adb Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Wed, 21 Dec 2022 17:31:45 +0100 Subject: [PATCH] Applied hicpp-noexcept-move clang-tidy fixes --- src/common/model/diagram.cc | 4 ++-- src/common/model/diagram.h | 4 ++-- src/common/model/nested_trait.h | 4 ++-- src/common/model/path.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/model/diagram.cc b/src/common/model/diagram.cc index d7430178..11a3c90a 100644 --- a/src/common/model/diagram.cc +++ b/src/common/model/diagram.cc @@ -27,9 +27,9 @@ diagram::diagram() = default; diagram::~diagram() = default; -diagram::diagram(diagram &&) = default; +diagram::diagram(diagram &&) noexcept = default; -diagram &diagram::operator=(diagram &&) = default; +diagram &diagram::operator=(diagram &&) noexcept = default; common::optional_ref diagram::get_with_namespace(const std::string &name, const namespace_ &ns) const diff --git a/src/common/model/diagram.h b/src/common/model/diagram.h index 63883c03..46964a69 100644 --- a/src/common/model/diagram.h +++ b/src/common/model/diagram.h @@ -51,9 +51,9 @@ public: get_with_namespace(const std::string &name, const namespace_ &ns) const; diagram(const diagram &) = delete; - diagram(diagram &&); + diagram(diagram &&) noexcept; diagram &operator=(const diagram &) = delete; - diagram &operator=(diagram &&); + diagram &operator=(diagram &&) noexcept; void set_name(const std::string &name); std::string name() const; diff --git a/src/common/model/nested_trait.h b/src/common/model/nested_trait.h index 43b23bef..9ab8c4c5 100644 --- a/src/common/model/nested_trait.h +++ b/src/common/model/nested_trait.h @@ -30,10 +30,10 @@ public: nested_trait() = default; nested_trait(const nested_trait &) = delete; - nested_trait(nested_trait &&) = default; + nested_trait(nested_trait &&) noexcept = default; nested_trait &operator=(const nested_trait &) = delete; - nested_trait &operator=(nested_trait &&) = default; + nested_trait &operator=(nested_trait &&) noexcept = default; virtual ~nested_trait() = default; diff --git a/src/common/model/path.h b/src/common/model/path.h index d1e224c7..14603876 100644 --- a/src/common/model/path.h +++ b/src/common/model/path.h @@ -51,7 +51,7 @@ public: path(path &&right) noexcept = default; - path &operator=(path &&right) = default; + path &operator=(path &&right) noexcept = default; path(std::initializer_list ns) {