clang API Documentation

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

Represents Objective-C's @try ... @catch ... @finally statement. More...

#include <StmtObjC.h>

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

List of all members.

Public Member Functions

SourceLocation getAtTryLoc () const
 Retrieve the location of the @ in the @try.
void setAtTryLoc (SourceLocation Loc)
const StmtgetTryBody () const
 Retrieve the @try body.
StmtgetTryBody ()
void setTryBody (Stmt *S)
unsigned getNumCatchStmts () const
 Retrieve the number of @catch statements in this try-catch-finally block.
const ObjCAtCatchStmtgetCatchStmt (unsigned I) const
 Retrieve a @catch statement.
ObjCAtCatchStmtgetCatchStmt (unsigned I)
 Retrieve a @catch statement.
void setCatchStmt (unsigned I, ObjCAtCatchStmt *S)
 Set a particular catch statement.
const ObjCAtFinallyStmtgetFinallyStmt () const
 Retrieve the @finally statement, if any.
ObjCAtFinallyStmtgetFinallyStmt ()
void setFinallyStmt (Stmt *S)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static ObjCAtTryStmtCreate (const ASTContext &Context, SourceLocation atTryLoc, Stmt *atTryStmt, Stmt **CatchStmts, unsigned NumCatchStmts, Stmt *atFinallyStmt)
static ObjCAtTryStmtCreateEmpty (const ASTContext &Context, unsigned NumCatchStmts, bool HasFinally)
static bool classof (const Stmt *T)

Detailed Description

Represents Objective-C's @try ... @catch ... @finally statement.

Definition at line 153 of file StmtObjC.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 247 of file StmtObjC.h.

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

Definition at line 243 of file StmtObjC.h.

ObjCAtTryStmt * ObjCAtTryStmt::Create ( const ASTContext Context,
SourceLocation  atTryLoc,
Stmt atTryStmt,
Stmt **  CatchStmts,
unsigned  NumCatchStmts,
Stmt atFinallyStmt 
) [static]

Definition at line 786 of file Stmt.cpp.

References clang::ASTContext::Allocate().

Referenced by clang::Sema::ActOnObjCAtTryStmt().

ObjCAtTryStmt * ObjCAtTryStmt::CreateEmpty ( const ASTContext Context,
unsigned  NumCatchStmts,
bool  HasFinally 
) [static]

Definition at line 799 of file Stmt.cpp.

References clang::ASTContext::Allocate().

Retrieve the location of the @ in the @try.

Definition at line 192 of file StmtObjC.h.

Retrieve a @catch statement.

Definition at line 205 of file StmtObjC.h.

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

Retrieve a @catch statement.

Definition at line 211 of file StmtObjC.h.

Retrieve the @finally statement, if any.

Definition at line 223 of file StmtObjC.h.

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

Definition at line 229 of file StmtObjC.h.

Reimplemented from clang::Stmt.

Definition at line 240 of file StmtObjC.h.

Retrieve the number of @catch statements in this try-catch-finally block.

Definition at line 202 of file StmtObjC.h.

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

const Stmt* clang::ObjCAtTryStmt::getTryBody ( ) const [inline]

Retrieve the @try body.

Definition at line 196 of file StmtObjC.h.

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

Definition at line 197 of file StmtObjC.h.

Definition at line 193 of file StmtObjC.h.

Set a particular catch statement.

Definition at line 217 of file StmtObjC.h.

References S.

Definition at line 235 of file StmtObjC.h.

References S.

void clang::ObjCAtTryStmt::setTryBody ( Stmt S) [inline]

Definition at line 198 of file StmtObjC.h.

References S.


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