Support overloading of the subscript operator[], including support for
built-in operator candidates. Test overloading of '&' and ','.
In C++, a comma expression is an lvalue if its right-hand
subexpression is an lvalue. Update Expr::isLvalue accordingly.
llvm-svn: 59643
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp
index 2a85f64..2ee113f 100644
--- a/clang/Driver/PrintParserCallbacks.cpp
+++ b/clang/Driver/PrintParserCallbacks.cpp
@@ -441,8 +441,9 @@
llvm::cout << __FUNCTION__ << "\n";
return 0;
}
- virtual ExprResult ActOnArraySubscriptExpr(ExprTy *Base, SourceLocation LLoc,
- ExprTy *Idx, SourceLocation RLoc) {
+ virtual ExprResult ActOnArraySubscriptExpr(Scope *S, ExprTy *Base,
+ SourceLocation LLoc, ExprTy *Idx,
+ SourceLocation RLoc) {
llvm::cout << __FUNCTION__ << "\n";
return 0;
}