Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show initialization of non-local variables #607

Open
Ukilele opened this issue Feb 6, 2024 · 0 comments
Open

Show initialization of non-local variables #607

Ukilele opened this issue Feb 6, 2024 · 0 comments

Comments

@Ukilele
Copy link

Ukilele commented Feb 6, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant