class ObjCAvailabilityCheckExpr

Declaration

class ObjCAvailabilityCheckExpr : public Expr { /* full declaration omitted */ };

Description

A runtime availability query. There are 2 ways to spell this node: Note that we only need to keep track of one \c VersionTuple here, which is the one that corresponds to the current deployment target. This is meant to be used in the condition of an \c if, but it is also usable as top level expressions.

Declared at: clang/include/clang/AST/ExprObjC.h:1686

Inherits from: Expr

Member Variables

private llvm::VersionTuple VersionToCheck
private clang::SourceLocation AtLoc
private clang::SourceLocation RParen

Inherited from Stmt:

protected

Method Overview

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

ObjCAvailabilityCheckExpr(
    llvm::VersionTuple VersionToCheck,
    clang::SourceLocation AtLoc,
    clang::SourceLocation RParen,
    clang::QualType Ty)

Declared at: clang/include/clang/AST/ExprObjC.h:1693

Parameters

llvm::VersionTuple VersionToCheck
clang::SourceLocation AtLoc
clang::SourceLocation RParen
clang::QualType Ty

ObjCAvailabilityCheckExpr(
    clang::Stmt::EmptyShell Shell)

Declared at: clang/include/clang/AST/ExprObjC.h:1700

Parameters

clang::Stmt::EmptyShell Shell

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/ExprObjC.h:1711

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/ExprObjC.h:1715

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/ExprObjC.h:1719

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/ExprObjC.h:1703

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/ExprObjC.h:1704

clang::SourceRange getSourceRange() const

Declared at: clang/include/clang/AST/ExprObjC.h:1705

llvm::VersionTuple getVersion() const

Declared at: clang/include/clang/AST/ExprObjC.h:1709

bool hasVersion() const

Description

This may be '*', in which case this should fold to true.

Declared at: clang/include/clang/AST/ExprObjC.h:1708