Address some of Doug's comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80114 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h
index 0146298..70e13f7 100644
--- a/include/clang/Parse/Action.h
+++ b/include/clang/Parse/Action.h
@@ -1263,8 +1263,11 @@
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 16d3511..80e701e 100644
--- a/lib/Parse/ParseExpr.cpp
+++ b/lib/Parse/ParseExpr.cpp
@@ -951,7 +951,7 @@
}
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 7a11a60..f7e3b67 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -1920,9 +1920,9 @@
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 a714f32..669705b 100644
--- a/lib/Sema/SemaExprCXX.cpp
+++ b/lib/Sema/SemaExprCXX.cpp
@@ -1683,7 +1683,7 @@
}
Sema::OwningExprResult
-Sema::ActOnPseudoDtorReferenceExpr(Scope *S, ExprArg Base,
+Sema::ActOnDestructorReferenceExpr(Scope *S, ExprArg Base,
SourceLocation OpLoc,
tok::TokenKind OpKind,
SourceLocation ClassNameLoc,