[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 20 04:23:58 PDT 2023


================
@@ -10085,10 +10085,14 @@ getImplicitObjectParamType(ASTContext &Context, const FunctionDecl *F) {
   return M->getFunctionObjectParameterReferenceType();
 }
 
-static bool haveSameParameterTypes(ASTContext &Context, const FunctionDecl *F1,
+static bool allowAmbiguityWithSelf(ASTContext &Context, const FunctionDecl *F1,
----------------
usx95 wrote:

I added a todo to get rid of the parameter type checks. I do not see any test failures without it.
Since this could again be a potentially breaking change, I will try cleaning this up in a separate PR.

Changed the name to `allowAmbiguity`. 

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


More information about the cfe-commits mailing list