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 }
Paths
| Differential D131091
[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 TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 3 2022, 12:27 PM This revision is now accepted and ready to land.Aug 11 2022, 5:37 AM Comment Actions @hokein, could you please also merge my pacth to code base? I haven't such permissions yet. Thank you for the review! Closed by commit rGee648c0ce09b: [clang][index] Index unresolved member expression as reference (authored by denis-fatkulin, committed by ArcsinX). · Explain WhyAug 19 2022, 9:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 454037 clang-tools-extra/clangd/unittests/XRefsTests.cpp
clang/lib/Index/IndexBody.cpp
clang/test/Index/Core/index-dependent-source.cpp
|