]> granicus.if.org Git - clang/commitdiff
Address some of Doug's comments.
authorAnders Carlsson <andersca@mac.com>
Wed, 26 Aug 2009 17:36:19 +0000 (17:36 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 26 Aug 2009 17:36:19 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80114 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Action.h
lib/Parse/ParseExpr.cpp
lib/Sema/Sema.h
lib/Sema/SemaExprCXX.cpp

index 0146298c724bb1d0f185ebbdafe9775a214320e3..70e13f7227e6a22d5d574bbd71426df51d01c6ad 100644 (file)
@@ -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,
index 16d3511dd7fd1207b6298d4065c21ba01bae4f97..80e701e17aee3815894720c9ca2c03e2352adbd7 100644 (file)
@@ -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(),
index 7a11a6030221591c9b795e9954fb39924c88f6c1..f7e3b67a14904769ad6d9a85461256dc81ae2af0 100644 (file)
@@ -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,
index a714f327d4dc9f2a67206b100509e17d85c31d80..669705b0d4c62b56d158f9c43155f09d7f9c11de 100644 (file)
@@ -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,