[clang] Reapply "[Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (#104458)" (PR #109422)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 07:25:56 PDT 2024
================
@@ -10639,9 +10639,9 @@ class Sema final : public SemaBase {
/// BuildOverloadedArrowExpr - Build a call to an overloaded @c operator->
/// (if one exists), where @c Base is an expression of class type and
/// @c Member is the name of the member we're trying to find.
- ExprResult BuildOverloadedArrowExpr(Scope *S, Expr *Base,
- SourceLocation OpLoc,
- bool *NoArrowOperatorFound = nullptr);
+ ExprResult BuildOverloadedArrowExpr(Expr *Base, SourceLocation OpLoc,
+ bool *NoArrowOperatorFound,
+ bool &IsDependent);
----------------
erichkeane wrote:
Ooof, I'm almost always really against 'out' parameters in C++. I'd hope we could come up with a better way for this.
https://github.com/llvm/llvm-project/pull/109422
More information about the cfe-commits
mailing list