From 85a307dffb5859d5559d654e2b92daca394e3497 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 17 May 2009 18:41:29 +0000 Subject: Implement Sema::ActOnFinishFullExpr and create a CXXExprWithTemporaries node if necessary. llvm-svn: 71983 --- clang/lib/Sema/Sema.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index c4890499a6d..eb723bb080e 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -162,7 +162,11 @@ public: /// in the top level function. Clients should always use getSwitchStack() to /// handle the case when they are in a block. llvm::SmallVector FunctionSwitchStack; - + + /// ExprTemporaries - This is the stack of temporaries that are created by + /// the current full expression. + llvm::SmallVector ExprTemporaries; + /// CurFunctionNeedsScopeChecking - This is set to true when a function or /// ObjC method body contains a VLA or an ObjC try block, which introduce /// scopes that need to be checked for goto conditions. If a function does @@ -1583,6 +1587,8 @@ public: TypeTy *Ty, SourceLocation RParen); + virtual OwningExprResult ActOnFinishFullExpr(ExprArg Expr); + bool RequireCompleteDeclContext(const CXXScopeSpec &SS); DeclContext *computeDeclContext(const CXXScopeSpec &SS); -- cgit v1.2.3