aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-29 06:34:33 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-29 06:34:33 +0000
commit4e1c181e2bb378dad55dd25c18611e3a0fb6c22a (patch)
tree107141b29079cc6d42cf58e686987ca461320522
parent9cfe0ec4decfd19a0387bb737f28eb0ea2c3a476 (diff)
Add getters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94803 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/ExprCXX.h8
1 files changed, 8 insertions, 0 deletions
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;