This is an archive of the discontinued LLVM Phabricator instance.

[clang][index] Index unresolved member expression as reference
ClosedPublic

Authored by denis-fatkulin on Aug 3 2022, 12:27 PM.

Details

Summary

Unresolved member expressions aren't indexed as references.

Example code:

struct Foo {
  template <typename T> void bar(T t); 
};
template <typename T> void test(Foo F, T t) {
  F.bar(t); // Not indexed
}

Diff Detail

Event Timeline

denis-fatkulin created this revision.Aug 3 2022, 12:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 12:27 PM
denis-fatkulin requested review of this revision.Aug 3 2022, 12:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 3 2022, 12:27 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
denis-fatkulin edited the summary of this revision. (Show Details)Aug 4 2022, 12:15 AM

clangd unit test fixed

nridge added a subscriber: nridge.Aug 6 2022, 12:56 PM

Broken tests are deleted

hokein accepted this revision.Aug 11 2022, 5:37 AM

Thanks!

This revision is now accepted and ready to land.Aug 11 2022, 5:37 AM

@hokein, could you please also merge my pacth to code base? I haven't such permissions yet.
My git user name and address: Denis Fatkulin (fatkulin.denis@huawei.com)

Thank you for the review!