[all-commits] [llvm/llvm-project] fa0498: [clang][HeuristicResolver] Apply default argument ...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Thu Apr 10 23:35:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa0498fdaed951dfb73a326a03fe3b00d544ea47
      https://github.com/llvm/llvm-project/commit/fa0498fdaed951dfb73a326a03fe3b00d544ea47
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2025-04-11 (Fri, 11 Apr 2025)

  Changed paths:
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp
    M clang/lib/Sema/HeuristicResolver.cpp
    M clang/unittests/Sema/HeuristicResolverTest.cpp

  Log Message:
  -----------
  [clang][HeuristicResolver] Apply default argument heuristic in resolveDeclRefExpr as well (#132576)

This is a follow-up to https://github.com/llvm/llvm-project/pull/131074.

After moving the default argument heuristic to `simplifyType` in that
patch, the heuristic no longer applied to the 
`DependentScopeDeclRefExpr` case, because that wasn't using
`simplifyType`.

This patch fixes that, with an added testcase.



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