This makes BindingDecl's of the same name have different USRs, so that references can be correctly attributed.
int a[1] = {}; { auto [x] = a; x; } { auto [x] = a; x; }
Paths
| Differential D52445
[Index] Use locations to uniquify function-scope BindingDecl USR ClosedPublic Authored by MaskRay on Sep 24 2018, 4:22 PM.
Details Summary This makes BindingDecl's of the same name have different USRs, so that references can be correctly attributed. int a[1] = {}; { auto [x] = a; x; } { auto [x] = a; x; }
Diff Detail
Event TimelineComment Actions The change looks reasonable to me, so lg. I'd wait a bit to see whether other reviewers have comments.
This revision is now accepted and ready to land.Oct 8 2018, 2:42 AM Closed by commit rC344010: [Index] Use locations to uniquify function-scope BindingDecl USR (authored by MaskRay). · Explain WhyOct 8 2018, 6:04 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 168704 lib/Index/USRGeneration.cpp
test/Index/Core/index-source.cpp
|
use isLocal(D) instead.