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

Incorrectly tagged default implementation keyword outside of type definition #620

Open
1 task done
j-cortial opened this issue Dec 12, 2022 · 0 comments
Open
1 task done
Assignees

Comments

@j-cortial
Copy link
Collaborator

j-cortial commented Dec 12, 2022

Checklist

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

The code with a problem is:

struct A1 {
  virtual ~A1() = default;
};

struct A2 {
  virtual ~A2() = 0;
};

A2::~A2() = default;

It looks like:

The first default is correctly tagged as keyword.other.default.destructor.cpp.
The second default is incorrectly tagged as keyword.control.default.cpp.

It should look like:

Both default should be tagged as keyword.other.default.destructor.cpp.

@j-cortial j-cortial self-assigned this Dec 12, 2022
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

When branches are created from issues, their pull requests are automatically linked.

1 participant