You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Andres,
a (probably not so) small feature request 🙂
The C-style cast is a pretty complex thing in C++: https://en.cppreference.com/w/cpp/language/explicit_cast . It follows a bunch of logical steps to find out what to actually do in the end. It would be convenient if cppsinsights would show which steps and which casts the compiler eventually executes.
It seems that this feature is already partly implemented. In the following code, the C-style cast gets correctly transformed into a reinterpret_cast:
Code:
Hey Andres,
a (probably not so) small feature request 🙂
The C-style cast is a pretty complex thing in C++: https://en.cppreference.com/w/cpp/language/explicit_cast . It follows a bunch of logical steps to find out what to actually do in the end. It would be convenient if cppsinsights would show which steps and which casts the compiler eventually executes.
Given following code:
It would be nice if cppinsights would show something like this:
It seems that this feature is already partly implemented. In the following code, the C-style cast gets correctly transformed into a
reinterpret_cast
:Code:
Tranformation:
Maybe the feature is already partly implemented but only a few bits are missing?
Thanks and best regards,
Kilian
The text was updated successfully, but these errors were encountered: