clang API Documentation
An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers, transferring ownership in the process. More...
#include <ExprObjC.h>


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 |
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.
| clang::ObjCBridgedCastExpr::ObjCBridgedCastExpr | ( | SourceLocation | LParenLoc, |
| ObjCBridgeCastKind | Kind, | ||
| CastKind | CK, | ||
| SourceLocation | BridgeKeywordLoc, | ||
| TypeSourceInfo * | TSInfo, | ||
| Expr * | Operand | ||
| ) | [inline] |
Definition at line 1536 of file ExprObjC.h.
| clang::ObjCBridgedCastExpr::ObjCBridgedCastExpr | ( | EmptyShell | Shell | ) | [inline, explicit] |
Construct an empty Objective-C bridged cast.
Definition at line 1544 of file ExprObjC.h.
| 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().
| SourceLocation clang::ObjCBridgedCastExpr::getBridgeKeywordLoc | ( | ) | const [inline] |
The location of the bridge keyword.
Definition at line 1558 of file ExprObjC.h.
| ObjCBridgeCastKind clang::ObjCBridgedCastExpr::getBridgeKind | ( | ) | const [inline] |
Determine which kind of bridge is being performed via this cast.
Definition at line 1550 of file ExprObjC.h.
Referenced by getBridgeKindName().
| StringRef ObjCBridgedCastExpr::getBridgeKindName | ( | ) | const |
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.
| SourceLocation clang::ObjCBridgedCastExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 1561 of file ExprObjC.h.
References clang::Stmt::getLocEnd(), and clang::CastExpr::getSubExpr().
| SourceLocation clang::ObjCBridgedCastExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 1560 of file ExprObjC.h.
| SourceLocation clang::ObjCBridgedCastExpr::getLParenLoc | ( | ) | const [inline] |
Definition at line 1547 of file ExprObjC.h.
Referenced by GetUnreachableLoc().
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.