Skip to content

ClangTidy warnings for cppcoreguidelines-noexcept-move-operations #1666

@jviotti

Description

@jviotti
/Users/jviotti/Projects/core/src/core/json/include/sourcemeta/core/json_value.h:219:3: error: move constructors should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
  219 |   JSON(JSON &&);
      |   ^
      |                 noexcept

/Users/jviotti/Projects/core/src/core/json/include/sourcemeta/core/json_value.h:221:8: error: move assignment operators should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
  221 |   auto operator=(JSON &&) -> JSON &;
      |        ^
      |                            noexcept

/Users/jviotti/Projects/core/src/core/json/json_value.cc:120:7: error: move constructors should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
  120 | JSON::JSON(JSON &&other) : current_type{other.current_type} {
      |       ^
      |                           noexcept

/Users/jviotti/Projects/core/src/core/json/json_value.cc:177:12: error: move assignment operators should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
  177 | auto JSON::operator=(JSON &&other) -> JSON & {
      |            ^
      |                                     noexcept

/Users/jviotti/Projects/core/src/core/uri/include/sourcemeta/core/uri.h:63:3: error: move constructors should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
   63 |   URI(URI &&other);
      |   ^
      |                    noexcept

/Users/jviotti/Projects/core/src/core/uri/uri.cc:137:6: error: move constructors should be marked noexcept [cppcoreguidelines-noexcept-move-operations,performance-noexcept-move-constructor,-warnings-as-errors]
  137 | URI::URI(URI &&other)
      |      ^
  138 |     : data{std::move(other.data)}, internal{std::move(other.internal)} {
      |  noexcept

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions