[clang] [Clang][RFC] Bypass TAD during overload resolution if a perfect match exists (PR #133426)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 15 08:37:04 PDT 2025


================
@@ -1043,6 +1141,8 @@ class Sema;
       /// C++ [over.match.call.general]
       /// Resolve a call through the address of an overload set.
       CSK_AddressOfOverloadSet,
+
+      CSK_CodeCompletion,
----------------
cor3ntin wrote:

When doing code completion, we do overload resolution ( see `ProduceCallSignatureHelp`) - In those cases, we want to always find all candidates, even if there is a candidate that would be a perfect match for the somewhat fake type or set of types that are used to produce the overload set so we can display them all.

Or at least that's my best understanding of it - I felt that this patch should not affect the behavior of code completion in any way.

https://github.com/llvm/llvm-project/pull/133426


More information about the cfe-commits mailing list