diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-19 17:17:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-19 17:17:41 +0000 |
commit | 337c6b9f5d502dc1c5acea628bf7bf9e828efc0e (patch) | |
tree | 74b96efaf3032268cc7547d824cced4c93574bb4 /Driver/PrintParserCallbacks.cpp | |
parent | 5cb93b8bf009c4b0ae09b71ba85f54b2a7ea8022 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | Driver/PrintParserCallbacks.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index 2a85f64646..2ee113fcda 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/Driver/PrintParserCallbacks.cpp @@ -441,8 +441,9 @@ namespace { 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; } |