Skip to content

Incorrectly interprets C cast as static_cast instead of reinterpret_cast #398

@leg0

Description

@leg0

This code is doing a reinterpret_cast, but cppinsights says it's doing a static_cast.
in:

void f()
{
  int* p = (int*)5;
}

out:

void f()
{
  int * p = static_cast<int *>((5));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions