diff options
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/Parse/Action.h | 5 | ||||
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Sema/Sema.h | 4 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 | 
4 files changed, 8 insertions, 5 deletions
diff --git a/clang/include/clang/Parse/Action.h b/clang/include/clang/Parse/Action.h index 0146298c724..70e13f7227e 100644 --- a/clang/include/clang/Parse/Action.h +++ b/clang/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/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 16d3511dd7f..80e701e17ae 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/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/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 7a11a603022..f7e3b67a149 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/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/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index a714f327d4d..669705b0d4c 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/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,  | 

