cppinsights icon indicating copy to clipboard operation
cppinsights copied to clipboard

Show initialization of non-local variables

Open Ukilele opened this issue 1 year ago • 0 comments

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!

Ukilele avatar Feb 06 '24 12:02 Ukilele