[all-commits] [llvm/llvm-project] e07af8: [clang][HeuristicResolver] Use HeuristicResolver t...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Tue Sep 16 12:19:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e07af8cbbfa2bd67c655e44ce648ede91a6ef8c7
      https://github.com/llvm/llvm-project/commit/e07af8cbbfa2bd67c655e44ce648ede91a6ef8c7
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M clang/include/clang/Sema/HeuristicResolver.h
    M clang/lib/Sema/HeuristicResolver.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/unittests/Sema/HeuristicResolverTest.cpp

  Log Message:
  -----------
  [clang][HeuristicResolver] Use HeuristicResolver to implement getApproximateType() in SemaCodeComplete (#156282)

This patch ports over the remaining functionality present in
SemaCodeComplete's getApproximateType() but not in HeuristicResolver,
into HeuristicResolver, and uses HeuristicResolver to reimplement
getApproximateType().

This has the effect of enhancing both code completion (which now
benefit from the full range of HeuristicResolver's capabilities), and
existing consumers of HeuristicResolver like clangd's go-to-definition
whose behaviour now has parity with code completion.

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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list