Skip to content

ClangTidy warnings for cppcoreguidelines-pro-type-reinterpret-cast #1671

@jviotti

Description

@jviotti
/Users/jviotti/Projects/core/src/core/yaml/yaml.cc:22:11: error: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast,-warnings-as-errors]
   22 |           reinterpret_cast<char *>(node->data.scalar.value),
      |           ^

/Users/jviotti/Projects/core/src/core/yaml/yaml.cc:71:25: error: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast,-warnings-as-errors]
   71 |           result.assign(reinterpret_cast<char *>(key_node->data.scalar.value),
      |                         ^

/Users/jviotti/Projects/core/src/core/yaml/yaml.cc:125:16: error: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast,-warnings-as-errors]
  125 |       &parser, reinterpret_cast<const unsigned char *>(input.c_str()),
      |                ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions