diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-31 19:52:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-31 19:52:13 +0000 |
commit | a6f0f9d589a06737707fe914e06bd6d4bfae0997 (patch) | |
tree | faaf659b8b4ed4014007fe85abe2bab227c99b29 /include/clang/Parse/Action.h | |
parent | 08c321380fff07d476a19daab6d29522c046cd49 (diff) |
Support explicit C++ member operator syntax, from James Porter!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Action.h')
-rw-r--r-- | include/clang/Parse/Action.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 108d43d9e6..f3364352aa 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -1292,6 +1292,34 @@ public: const CXXScopeSpec *SS = 0) { return ExprEmpty(); } + + /// ActOnOverloadedOperatorReferenceExpr - Parsed an overloaded operator + /// reference, for example: + /// + /// t.operator++(); + virtual OwningExprResult + ActOnOverloadedOperatorReferenceExpr(Scope *S, ExprArg Base, + SourceLocation OpLoc, + tok::TokenKind OpKind, + SourceLocation ClassNameLoc, + OverloadedOperatorKind OverOpKind, + const CXXScopeSpec *SS = 0) { + return ExprEmpty(); + } + + /// ActOnConversionOperatorReferenceExpr - Parsed an overloaded conversion + /// function reference, for example: + /// + /// t.operator int(); + virtual OwningExprResult + ActOnConversionOperatorReferenceExpr(Scope *S, ExprArg Base, + SourceLocation OpLoc, + tok::TokenKind OpKind, + SourceLocation ClassNameLoc, + TypeTy *Ty, + const CXXScopeSpec *SS = 0) { + return ExprEmpty(); + } /// ActOnFinishFullExpr - Called whenever a full expression has been parsed. /// (C++ [intro.execution]p12). |