clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::ObjCBridgedCastExpr Class Reference

An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers, transferring ownership in the process. More...

#include <ExprObjC.h>

Inheritance diagram for clang::ObjCBridgedCastExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::ObjCBridgedCastExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjCBridgedCastExpr (SourceLocation LParenLoc, ObjCBridgeCastKind Kind, CastKind CK, SourceLocation BridgeKeywordLoc, TypeSourceInfo *TSInfo, Expr *Operand)
 ObjCBridgedCastExpr (EmptyShell Shell)
 Construct an empty Objective-C bridged cast.
SourceLocation getLParenLoc () const
ObjCBridgeCastKind getBridgeKind () const
 Determine which kind of bridge is being performed via this cast.
StringRef getBridgeKindName () const
 Retrieve the kind of bridge being performed as a string.
SourceLocation getBridgeKeywordLoc () const
 The location of the bridge keyword.
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY

Static Public Member Functions

static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class ASTStmtWriter

Detailed Description

An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers, transferring ownership in the process.

 NSString *str = (__bridge_transfer NSString *)CFCreateString();

Definition at line 1527 of file ExprObjC.h.


Constructor & Destructor Documentation

clang::ObjCBridgedCastExpr::ObjCBridgedCastExpr ( SourceLocation  LParenLoc,
ObjCBridgeCastKind  Kind,
CastKind  CK,
SourceLocation  BridgeKeywordLoc,
TypeSourceInfo TSInfo,
Expr Operand 
) [inline]

Definition at line 1536 of file ExprObjC.h.

Construct an empty Objective-C bridged cast.

Definition at line 1544 of file ExprObjC.h.


Member Function Documentation

static bool clang::ObjCBridgedCastExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::ExplicitCastExpr.

Definition at line 1565 of file ExprObjC.h.

References clang::Stmt::getStmtClass().

The location of the bridge keyword.

Definition at line 1558 of file ExprObjC.h.

Determine which kind of bridge is being performed via this cast.

Definition at line 1550 of file ExprObjC.h.

Referenced by getBridgeKindName().

Retrieve the kind of bridge being performed as a string.

Definition at line 3668 of file Expr.cpp.

References getBridgeKind(), clang::OBC_Bridge, clang::OBC_BridgeRetained, and clang::OBC_BridgeTransfer.

Reimplemented from clang::Stmt.

Definition at line 1561 of file ExprObjC.h.

References clang::Stmt::getLocEnd(), and clang::CastExpr::getSubExpr().

Reimplemented from clang::Stmt.

Definition at line 1560 of file ExprObjC.h.

Definition at line 1547 of file ExprObjC.h.

Referenced by GetUnreachableLoc().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 1532 of file ExprObjC.h.

friend class ASTStmtWriter [friend]

Reimplemented from clang::Stmt.

Definition at line 1533 of file ExprObjC.h.


The documentation for this class was generated from the following files: