clang API Documentation

Public Member Functions | Static Public Member Functions
clang::ObjCAtSynchronizedStmt Class Reference

Represents Objective-C's @synchronized statement. More...

#include <StmtObjC.h>

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

List of all members.

Public Member Functions

 ObjCAtSynchronizedStmt (SourceLocation atSynchronizedLoc, Stmt *synchExpr, Stmt *synchBody)
 ObjCAtSynchronizedStmt (EmptyShell Empty)
SourceLocation getAtSynchronizedLoc () const
void setAtSynchronizedLoc (SourceLocation Loc)
const CompoundStmtgetSynchBody () const
CompoundStmtgetSynchBody ()
void setSynchBody (Stmt *S)
const ExprgetSynchExpr () const
ExprgetSynchExpr ()
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)

Detailed Description

Represents Objective-C's @synchronized statement.

Example:

   @synchronized (sem) {
     do-something;
   }

Definition at line 261 of file StmtObjC.h.


Constructor & Destructor Documentation

clang::ObjCAtSynchronizedStmt::ObjCAtSynchronizedStmt ( SourceLocation  atSynchronizedLoc,
Stmt synchExpr,
Stmt synchBody 
) [inline]

Definition at line 268 of file StmtObjC.h.

Definition at line 275 of file StmtObjC.h.


Member Function Documentation

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().

Definition at line 278 of file StmtObjC.h.

Reimplemented from clang::Stmt.

Definition at line 298 of file StmtObjC.h.

References clang::CompoundStmt::getLocEnd(), and getSynchBody().

Reimplemented from clang::Stmt.

Definition at line 297 of file StmtObjC.h.

Definition at line 281 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), and getLocEnd().

Definition at line 284 of file StmtObjC.h.

Definition at line 289 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt().

Definition at line 292 of file StmtObjC.h.

Definition at line 279 of file StmtObjC.h.

Definition at line 287 of file StmtObjC.h.

References S.

Definition at line 295 of file StmtObjC.h.

References S.


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