[clangd] Use resolveTypeToRecordDecl() to resolve the type of a base specifier during...
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 12 Jun 2023 08:05:10 +0000 (04:05 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 20 Jun 2023 17:40:26 +0000 (13:40 -0400)
commit6fe9cfe4137bc140c909850c26b52e9406495566
tree95458ba4e27d61eed590d8087c47667a5a43e45f
parent59f266d2e2789256f7e8a584fcdc159b357f114a
[clangd] Use resolveTypeToRecordDecl() to resolve the type of a base specifier during heuristic resolution

The code for resolving the type of a base specifier was inside
CXXRecordDecl::lookupDependentName(), so this patch reimplements
lookupDependentName() in HeuristicResolver.

Fixes https://github.com/clangd/clangd/issues/1657

Differential Revision: https://reviews.llvm.org/D153248
clang-tools-extra/clangd/HeuristicResolver.cpp
clang-tools-extra/clangd/HeuristicResolver.h
clang-tools-extra/clangd/unittests/FindTargetTests.cpp