Skip to content

ClangTidy warnings for cppcoreguidelines-prefer-member-initializer #1668

Open
@jviotti

Description

@jviotti
/Users/jviotti/Projects/core/src/core/uri/uri.cc:139:3: error: 'parsed' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
  137 | URI::URI(URI &&other)
      |
      |                       : parsed(other.parsed)
  138 |     : data{std::move(other.data)}, internal{std::move(other.internal)} {
  139 |   this->parsed = other.parsed;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

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