The assertion is not true anymore after D82739, this patch just removes
it, and rename related functions.
And also fixes a missing cases.
Paths
| Differential D84837
[clangd] Fix an assertion failure in TargetFinder's heuristic resolution of dependent type. ClosedPublic Authored by hokein on Jul 29 2020, 5:03 AM.
Details Summary The assertion is not true anymore after D82739, this patch just removes And also fixes a missing cases.
Diff Detail
Event TimelineComment Actions Thanks!
This revision is now accepted and ready to land.Jul 29 2020, 10:01 AM
Closed by commit rGcd4e8d7f6f5e: [clangd] Fix an assertion failure in TargetFinder's heuristic resolution of… (authored by hokein). · Explain WhyJul 30 2020, 12:10 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 281526 clang-tools-extra/clangd/FindTarget.cpp
clang-tools-extra/clangd/unittests/FindTargetTests.cpp
|
I do think the "heuristic" nature of this function is an important part of its interface that's currently lost with this rename.
However, I think that's fine for now. In a future refactor (to get code-completion to use this machinery as well) I plan to move these functions into a HeuristicResolver class or a heuristics sub-namespace or something like that.