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

Address of operator is treated as bitwise and operator. #661

Open
1 task done
Quelfth opened this issue Sep 27, 2024 · 0 comments
Open
1 task done

Address of operator is treated as bitwise and operator. #661

Quelfth opened this issue Sep 27, 2024 · 0 comments

Comments

@Quelfth
Copy link

Quelfth commented Sep 27, 2024

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension:
https://github.com/microsoft/vscode-cpptools/issues/new/choose

The code with a problem is:

void func(int& a) {
    int x = 0;
    int* y = &x;
}

It looks like:

bad57da7ab14b7feaf25e9ea0e71fd35

It should look like:

The ampersand in &x should be orange, the same color as the one in int& a, because it is the address of operator, but instead it is categorized as the bitwise and operator, and therefore it is colored light yellow, which is the color I use for bitwise operators.

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