cppinsights
cppinsights copied to clipboard
Show initialization of non-local variables
Hey,
it would be great it cppinsights would show the initialization of non-local variables, which a compiler performs implicitly. I am referring to: https://en.cppreference.com/w/cpp/language/initialization#Non-local_variables
In the following code, a compiler will implicitly initialize X::i with 0. It would be neat, if cppinsights would show this.
namespace X
{
int i;
}
int main()
{
++X::i;
}
Best regards!