summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-17 18:41:29 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-17 18:41:29 +0000
commit85a307dffb5859d5559d654e2b92daca394e3497 (patch)
treeb10d469b3de822e945c08f7a3b5bb236c94fbdc2 /clang/lib/Sema/Sema.h
parent5262746c280993c80525afdbcd93d5a10dfccd6a (diff)
downloadbcm5719-llvm-85a307dffb5859d5559d654e2b92daca394e3497.tar.gz
bcm5719-llvm-85a307dffb5859d5559d654e2b92daca394e3497.zip
Implement Sema::ActOnFinishFullExpr and create a CXXExprWithTemporaries node if necessary.
llvm-svn: 71983
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h8
1 files changed, 7 insertions, 1 deletions
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<SwitchStmt*, 8> FunctionSwitchStack;
-
+
+ /// ExprTemporaries - This is the stack of temporaries that are created by
+ /// the current full expression.
+ llvm::SmallVector<CXXTempVarDecl*, 8> 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);
OpenPOWER on IntegriCloud