[cfe-commits] r80114 - in /cfe/trunk: include/clang/Parse/Action.h lib/Parse/ParseExpr.cpp lib/Sema/Sema.h lib/Sema/SemaExprCXX.cpp
Anders Carlsson
andersca at mac.com
Wed Aug 26 10:36:19 PDT 2009
Author: andersca
Date: Wed Aug 26 12:36:19 2009
New Revision: 80114
URL: http://llvm.org/viewvc/llvm-project?rev=80114&view=rev
Log:
Address some of Doug's comments.
Modified:
cfe/trunk/include/clang/Parse/Action.h
cfe/trunk/lib/Parse/ParseExpr.cpp
cfe/trunk/lib/Sema/Sema.h
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Action.h?rev=80114&r1=80113&r2=80114&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/trunk/include/clang/Parse/Action.h Wed Aug 26 12:36:19 2009
@@ -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,
Modified: cfe/trunk/lib/Parse/ParseExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExpr.cpp?rev=80114&r1=80113&r2=80114&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExpr.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExpr.cpp Wed Aug 26 12:36:19 2009
@@ -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(),
Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=80114&r1=80113&r2=80114&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Wed Aug 26 12:36:19 2009
@@ -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,
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=80114&r1=80113&r2=80114&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Wed Aug 26 12:36:19 2009
@@ -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,
More information about the cfe-commits
mailing list