[all-commits] [llvm/llvm-project] 6fe9cf: [clangd] Use resolveTypeToRecordDecl() to resolve ...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Tue Jun 20 10:40:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fe9cfe4137bc140c909850c26b52e9406495566
      https://github.com/llvm/llvm-project/commit/6fe9cfe4137bc140c909850c26b52e9406495566
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2023-06-20 (Tue, 20 Jun 2023)

  Changed paths:
    M clang-tools-extra/clangd/HeuristicResolver.cpp
    M clang-tools-extra/clangd/HeuristicResolver.h
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list