[cfe-commits] r94803 - /cfe/trunk/include/clang/AST/ExprCXX.h
Anders Carlsson
andersca at mac.com
Thu Jan 28 22:34:33 PST 2010
Author: andersca
Date: Fri Jan 29 00:34:33 2010
New Revision: 94803
URL: http://llvm.org/viewvc/llvm-project?rev=94803&view=rev
Log:
Add getters.
Modified:
cfe/trunk/include/clang/AST/ExprCXX.h
Modified: cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprCXX.h?rev=94803&r1=94802&r2=94803&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/trunk/include/clang/AST/ExprCXX.h Fri Jan 29 00:34:33 2010
@@ -587,6 +587,14 @@
return SubExpr->getSourceRange();
}
+ /// requiresTemporaryCopy - Whether binding the subexpression requires a
+ /// temporary copy.
+ bool requiresTemporaryCopy() const { return RequiresTemporaryCopy; }
+
+ // extendsLifetime - Whether binding this reference extends the lifetime of
+ // the expression being bound. FIXME: Add C++ reference.
+ bool extendsLifetime() { return ExtendsLifetime; }
+
// Implement isa/cast/dyncast/etc.
static bool classof(const Stmt *T) {
return T->getStmtClass() == CXXBindReferenceExprClass;
More information about the cfe-commits
mailing list