diff options
-rw-r--r-- | include/clang/Parse/Action.h | 5 | ||||
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 | ||||
-rw-r--r-- | lib/Sema/Sema.h | 4 | ||||
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 0146298c72..70e13f7227 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -1263,8 +1263,11 @@ public: return ExprEmpty(); } + /// ActOnDestructorReferenceExpr - Parsed a destructor reference, for example: + /// + /// t->~T(); virtual OwningExprResult - ActOnPseudoDtorReferenceExpr(Scope *S, ExprArg Base, + ActOnDestructorReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc, tok::TokenKind OpKind, SourceLocation ClassNameLoc, diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 16d3511dd7..80e701e17a 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -951,7 +951,7 @@ Parser::ParsePostfixExpressionSuffix(OwningExprResult LHS) { } if (!LHS.isInvalid()) - LHS = Actions.ActOnPseudoDtorReferenceExpr(CurScope, move(LHS), + LHS = Actions.ActOnDestructorReferenceExpr(CurScope, move(LHS), OpLoc, OpKind, Tok.getLocation(), Tok.getIdentifierInfo(), diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 7a11a60302..f7e3b67a14 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -1920,9 +1920,9 @@ public: SourceLocation LParen, TypeTy *Ty, SourceLocation RParen); - + virtual OwningExprResult - ActOnPseudoDtorReferenceExpr(Scope *S, ExprArg Base, + ActOnDestructorReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc, tok::TokenKind OpKind, SourceLocation ClassNameLoc, diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index a714f327d4..669705b0d4 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -1683,7 +1683,7 @@ Expr *Sema::MaybeCreateCXXExprWithTemporaries(Expr *SubExpr, } Sema::OwningExprResult -Sema::ActOnPseudoDtorReferenceExpr(Scope *S, ExprArg Base, +Sema::ActOnDestructorReferenceExpr(Scope *S, ExprArg Base, SourceLocation OpLoc, tok::TokenKind OpKind, SourceLocation ClassNameLoc, |