Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/ExprCXX.h
Show First 20 Lines • Show All 4,522 Lines • ▼ Show 20 Lines | public: | ||||
unsigned getManglingNumber() const { | unsigned getManglingNumber() const { | ||||
return State.is<Stmt *>() ? 0 | return State.is<Stmt *>() ? 0 | ||||
: State.get<LifetimeExtendedTemporaryDecl *>() | : State.get<LifetimeExtendedTemporaryDecl *>() | ||||
->getManglingNumber(); | ->getManglingNumber(); | ||||
} | } | ||||
/// Determine whether this materialized temporary is bound to an | /// Determine whether this materialized temporary is bound to an | ||||
/// lvalue reference; otherwise, it's bound to an rvalue reference. | /// lvalue reference; otherwise, it's bound to an rvalue reference. | ||||
bool isBoundToLvalueReference() const { | bool isBoundToLvalueReference() const { return isLValue(); } | ||||
return getValueKind() == VK_LValue; | |||||
} | |||||
/// Determine whether this temporary object is usable in constant | /// Determine whether this temporary object is usable in constant | ||||
/// expressions, as specified in C++20 [expr.const]p4. | /// expressions, as specified in C++20 [expr.const]p4. | ||||
bool isUsableInConstantExpressions(const ASTContext &Context) const; | bool isUsableInConstantExpressions(const ASTContext &Context) const; | ||||
SourceLocation getBeginLoc() const LLVM_READONLY { | SourceLocation getBeginLoc() const LLVM_READONLY { | ||||
return getSubExpr()->getBeginLoc(); | return getSubExpr()->getBeginLoc(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 366 Lines • Show Last 20 Lines |