[clang] [Clang] Better handle overload of explicit object member functions (PR #147498)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 9 08:26:08 PDT 2025


================
@@ -1535,11 +1535,15 @@ static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New,
         return F->getRefQualifier() == RQ_None &&
                !F->isExplicitObjectMemberFunction();
       };
+      if (!IsImplicitWithNoRefQual(Old) && IsImplicitWithNoRefQual(New) &&
----------------
erichkeane wrote:

Toss a quick comment explaining what is happening here/why we are doing this, else this is much improved.

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


More information about the cfe-commits mailing list