Skip to content

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

Open
@Quelfth

Description

@Quelfth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions