clang API Documentation
Represents Objective-C's @synchronized statement. More...
#include <StmtObjC.h>
Public Member Functions | |
ObjCAtSynchronizedStmt (SourceLocation atSynchronizedLoc, Stmt *synchExpr, Stmt *synchBody) | |
ObjCAtSynchronizedStmt (EmptyShell Empty) | |
SourceLocation | getAtSynchronizedLoc () const |
void | setAtSynchronizedLoc (SourceLocation Loc) |
const CompoundStmt * | getSynchBody () const |
CompoundStmt * | getSynchBody () |
void | setSynchBody (Stmt *S) |
const Expr * | getSynchExpr () const |
Expr * | getSynchExpr () |
void | setSynchExpr (Stmt *S) |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Represents Objective-C's @synchronized statement.
Example:
@synchronized (sem) { do-something; }
Definition at line 261 of file StmtObjC.h.
clang::ObjCAtSynchronizedStmt::ObjCAtSynchronizedStmt | ( | SourceLocation | atSynchronizedLoc, |
Stmt * | synchExpr, | ||
Stmt * | synchBody | ||
) | [inline] |
Definition at line 268 of file StmtObjC.h.
clang::ObjCAtSynchronizedStmt::ObjCAtSynchronizedStmt | ( | EmptyShell | Empty | ) | [inline, explicit] |
Definition at line 275 of file StmtObjC.h.
child_range clang::ObjCAtSynchronizedStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
Definition at line 306 of file StmtObjC.h.
static bool clang::ObjCAtSynchronizedStmt::classof | ( | const Stmt * | T | ) | [inline, static] |
Definition at line 302 of file StmtObjC.h.
References clang::Stmt::getStmtClass().
SourceLocation clang::ObjCAtSynchronizedStmt::getAtSynchronizedLoc | ( | ) | const [inline] |
Definition at line 278 of file StmtObjC.h.
SourceLocation clang::ObjCAtSynchronizedStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 298 of file StmtObjC.h.
References clang::CompoundStmt::getLocEnd(), and getSynchBody().
SourceLocation clang::ObjCAtSynchronizedStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 297 of file StmtObjC.h.
const CompoundStmt* clang::ObjCAtSynchronizedStmt::getSynchBody | ( | ) | const [inline] |
Definition at line 281 of file StmtObjC.h.
Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), and getLocEnd().
CompoundStmt* clang::ObjCAtSynchronizedStmt::getSynchBody | ( | ) | [inline] |
Definition at line 284 of file StmtObjC.h.
const Expr* clang::ObjCAtSynchronizedStmt::getSynchExpr | ( | ) | const [inline] |
Definition at line 289 of file StmtObjC.h.
Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt().
Expr* clang::ObjCAtSynchronizedStmt::getSynchExpr | ( | ) | [inline] |
Definition at line 292 of file StmtObjC.h.
void clang::ObjCAtSynchronizedStmt::setAtSynchronizedLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 279 of file StmtObjC.h.
void clang::ObjCAtSynchronizedStmt::setSynchBody | ( | Stmt * | S | ) | [inline] |
Definition at line 287 of file StmtObjC.h.
References S.
void clang::ObjCAtSynchronizedStmt::setSynchExpr | ( | Stmt * | S | ) | [inline] |
Definition at line 295 of file StmtObjC.h.
References S.