Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cxx): use correct definition anchor spans for lambdas (#5890)
- Loading branch information
1 parent
9953914
commit 3d0a2d9
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
// TODO(justinbuchanan): fix indexer to include leading '[](' in lambda anchor | ||
//- @") {}" defines Lambda | ||
//- Lambda.node/kind function | ||
//- @"[]() {}" defines LambdaFn | ||
//- LambdaFn.node/kind function | ||
auto fn = []() {}; | ||
|
||
//- @"[]() -> int { return 0; }" defines LambdaFn2 | ||
//- LambdaFn2.node/kind function | ||
auto fn2 = []() -> int { return 0; }; | ||
|
||
void outer() { | ||
int i = 0; | ||
//- @"[&i]() {}" defines LambdaFn3 | ||
//- LambdaFn3.node/kind function | ||
auto fn3 = [&i]() {}; | ||
} |