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

Occurrence in lambda capture initializer not highlighted #496

Closed
HighCommander4 opened this issue Aug 18, 2020 · 1 comment
Closed

Occurrence in lambda capture initializer not highlighted #496

HighCommander4 opened this issue Aug 18, 2020 · 1 comment
Assignees

Comments

@HighCommander4
Copy link

HighCommander4 commented Aug 18, 2020

In the following code:

void foo() {
  int waldo = 42;
  waldo = waldo + 1;
  auto lambda = [x = waldo](){};
}

If you click on the declaration of waldo, the two occurrences on the next line are highlighted (via textDocument/documentHighlight), but the occurrence in the lambda capture initializer is not.

@HighCommander4 HighCommander4 self-assigned this Sep 7, 2020
@HighCommander4
Copy link
Author

Proposed fix

arichardson pushed a commit to arichardson/llvm-project that referenced this issue Mar 24, 2021
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