Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/Expr.h
Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | public: | ||||
/// This function extends classify in that it also tests whether the | /// This function extends classify in that it also tests whether the | ||||
/// expression is modifiable (C99 6.3.2.1p1). | /// expression is modifiable (C99 6.3.2.1p1). | ||||
/// \param Loc A source location that might be filled with a relevant location | /// \param Loc A source location that might be filled with a relevant location | ||||
/// if the expression is not modifiable. | /// if the expression is not modifiable. | ||||
Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{ | Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{ | ||||
return ClassifyImpl(Ctx, &Loc); | return ClassifyImpl(Ctx, &Loc); | ||||
} | } | ||||
/// Returns the set of floating point options that apply to this expression. | |||||
/// Only meaningful for operations on floating point values. | |||||
FPOptions getFPFeaturesInEffect(const LangOptions &LO) const; | |||||
/// getValueKindForType - Given a formal return or parameter type, | /// getValueKindForType - Given a formal return or parameter type, | ||||
/// give its value kind. | /// give its value kind. | ||||
static ExprValueKind getValueKindForType(QualType T) { | static ExprValueKind getValueKindForType(QualType T) { | ||||
if (const ReferenceType *RT = T->getAs<ReferenceType>()) | if (const ReferenceType *RT = T->getAs<ReferenceType>()) | ||||
return (isa<LValueReferenceType>(RT) | return (isa<LValueReferenceType>(RT) | ||||
? VK_LValue | ? VK_LValue | ||||
: (RT->getPointeeType()->isFunctionType() | : (RT->getPointeeType()->isFunctionType() | ||||
? VK_LValue : VK_XValue)); | ? VK_LValue : VK_XValue)); | ||||
▲ Show 20 Lines • Show All 5,995 Lines • Show Last 20 Lines |