From: Anders Carlsson Date: Fri, 29 Jan 2010 06:34:33 +0000 (+0000) Subject: Add getters. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e1c181e2bb378dad55dd25c18611e3a0fb6c22a;p=clang Add getters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94803 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ExprCXX.h b/include/clang/AST/ExprCXX.h index 798927237b..98933dbfdc 100644 --- a/include/clang/AST/ExprCXX.h +++ b/include/clang/AST/ExprCXX.h @@ -587,6 +587,14 @@ public: 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;