aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-26 17:36:19 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-26 17:36:19 +0000
commit3aa4ca439da54bc71def778126c9cf10c7d910ed (patch)
tree99f89d3f4df73ee297a2afa124018ad0ba2ec5a0
parentc3384cba391f9140a46db0caa061649b633f65bc (diff)
Address some of Doug's comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80114 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Parse/Action.h5
-rw-r--r--lib/Parse/ParseExpr.cpp2
-rw-r--r--lib/Sema/Sema.h4
-rw-r--r--lib/Sema/SemaExprCXX.cpp2
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,