clang API Documentation
#include <ExprObjC.h>
Public Member Functions | |
ObjCProtocolExpr (QualType T, ObjCProtocolDecl *protocol, SourceLocation at, SourceLocation protoLoc, SourceLocation rp) | |
ObjCProtocolExpr (EmptyShell Empty) | |
ObjCProtocolDecl * | getProtocol () const |
void | setProtocol (ObjCProtocolDecl *P) |
SourceLocation | getProtocolIdLoc () const |
SourceLocation | getAtLoc () const |
SourceLocation | getRParenLoc () const |
void | setAtLoc (SourceLocation L) |
void | setRParenLoc (SourceLocation L) |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
class | ASTStmtWriter |
ObjCProtocolExpr used for protocol expression in Objective-C.
This is used as: @protocol(foo), as in:
[obj conformsToProtocol:@protocol(foo)]
The return type is "Protocol*".
Definition at line 429 of file ExprObjC.h.
clang::ObjCProtocolExpr::ObjCProtocolExpr | ( | QualType | T, |
ObjCProtocolDecl * | protocol, | ||
SourceLocation | at, | ||
SourceLocation | protoLoc, | ||
SourceLocation | rp | ||
) | [inline] |
Definition at line 433 of file ExprObjC.h.
clang::ObjCProtocolExpr::ObjCProtocolExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
Definition at line 438 of file ExprObjC.h.
child_range clang::ObjCProtocolExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
Definition at line 458 of file ExprObjC.h.
static bool clang::ObjCProtocolExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 453 of file ExprObjC.h.
References clang::Stmt::getStmtClass().
SourceLocation clang::ObjCProtocolExpr::getAtLoc | ( | ) | const [inline] |
Definition at line 445 of file ExprObjC.h.
SourceLocation clang::ObjCProtocolExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 451 of file ExprObjC.h.
SourceLocation clang::ObjCProtocolExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 450 of file ExprObjC.h.
ObjCProtocolDecl* clang::ObjCProtocolExpr::getProtocol | ( | ) | const [inline] |
Definition at line 441 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCProtocolExpr().
SourceLocation clang::ObjCProtocolExpr::getProtocolIdLoc | ( | ) | const [inline] |
Definition at line 444 of file ExprObjC.h.
SourceLocation clang::ObjCProtocolExpr::getRParenLoc | ( | ) | const [inline] |
Definition at line 446 of file ExprObjC.h.
void clang::ObjCProtocolExpr::setAtLoc | ( | SourceLocation | L | ) | [inline] |
Definition at line 447 of file ExprObjC.h.
void clang::ObjCProtocolExpr::setProtocol | ( | ObjCProtocolDecl * | P | ) | [inline] |
Definition at line 442 of file ExprObjC.h.
References P.
void clang::ObjCProtocolExpr::setRParenLoc | ( | SourceLocation | L | ) | [inline] |
Definition at line 448 of file ExprObjC.h.
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.
Definition at line 460 of file ExprObjC.h.
friend class ASTStmtWriter [friend] |
Reimplemented from clang::Stmt.
Definition at line 461 of file ExprObjC.h.