clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::CXXTryStmt Class Reference

#include <StmtCXX.h>

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

List of all members.

Public Member Functions

SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceLocation getTryLoc () const
SourceLocation getEndLoc () const
CompoundStmtgetTryBlock ()
const CompoundStmtgetTryBlock () const
unsigned getNumHandlers () const
CXXCatchStmtgetHandler (unsigned i)
const CXXCatchStmtgetHandler (unsigned i) const
child_range children ()

Static Public Member Functions

static CXXTryStmtCreate (const ASTContext &C, SourceLocation tryLoc, Stmt *tryBlock, ArrayRef< Stmt * > handlers)
static CXXTryStmtCreate (const ASTContext &C, EmptyShell Empty, unsigned numHandlers)
static bool classof (const Stmt *T)

Friends

class ASTStmtReader

Detailed Description

CXXTryStmt - A C++ try block, including all handlers.

Definition at line 65 of file StmtCXX.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 115 of file StmtCXX.h.

References getNumHandlers().

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

Definition at line 111 of file StmtCXX.h.

References clang::Stmt::getStmtClass().

CXXTryStmt * CXXTryStmt::Create ( const ASTContext C,
SourceLocation  tryLoc,
Stmt tryBlock,
ArrayRef< Stmt * >  handlers 
) [static]

Definition at line 816 of file Stmt.cpp.

References clang::ASTContext::Allocate().

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

CXXTryStmt * CXXTryStmt::Create ( const ASTContext C,
EmptyShell  Empty,
unsigned  numHandlers 
) [static]

Definition at line 825 of file Stmt.cpp.

References clang::ASTContext::Allocate().

Definition at line 92 of file StmtCXX.h.

References clang::Stmt::getLocEnd().

Referenced by getLocEnd().

const CXXCatchStmt* clang::CXXTryStmt::getHandler ( unsigned  i) const [inline]

Definition at line 107 of file StmtCXX.h.

Reimplemented from clang::Stmt.

Definition at line 89 of file StmtCXX.h.

References getEndLoc().

Reimplemented from clang::Stmt.

Definition at line 88 of file StmtCXX.h.

References getTryLoc().

Definition at line 96 of file StmtCXX.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitCXXTryStmt().

const CompoundStmt* clang::CXXTryStmt::getTryBlock ( ) const [inline]

Definition at line 99 of file StmtCXX.h.

Definition at line 91 of file StmtCXX.h.

Referenced by getLocStart().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 119 of file StmtCXX.h.


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