[all-commits] [llvm/llvm-project] 9510b0: [clangd] Factor out the heuristic resolver code in...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Tue Feb 16 01:11:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9510b09402659e6ba6e29b9caf0504c89bc72871
      https://github.com/llvm/llvm-project/commit/9510b09402659e6ba6e29b9caf0504c89bc72871
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M clang-tools-extra/clangd/ASTSignals.cpp
    M clang-tools-extra/clangd/CMakeLists.txt
    M clang-tools-extra/clangd/FindTarget.cpp
    M clang-tools-extra/clangd/FindTarget.h
    A clang-tools-extra/clangd/HeuristicResolver.cpp
    A clang-tools-extra/clangd/HeuristicResolver.h
    M clang-tools-extra/clangd/Hover.cpp
    M clang-tools-extra/clangd/ParsedAST.cpp
    M clang-tools-extra/clangd/ParsedAST.h
    M clang-tools-extra/clangd/SemanticHighlighting.cpp
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/refactor/Rename.cpp
    M clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
    M clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
    M clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
    M clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp

  Log Message:
  -----------
  [clangd] Factor out the heuristic resolver code into its own class

The patch also does some cleanup on the interface of the entry
points from TargetFinder into the heuristic resolution code.

Since the heuristic resolver is created in a place where the
ASTContext is available, it can store the ASTContext and the
NameFactory hack can be removed.

Differential revision: https://reviews.llvm.org/D92290




More information about the All-commits mailing list