clang  3.7.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::CXXTryStmt Class Reference

#include <StmtCXX.h>

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

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

child_range clang::CXXTryStmt::children ( )
inline

Definition at line 115 of file StmtCXX.h.

References getNumHandlers().

static bool clang::CXXTryStmt::classof ( const Stmt T)
inlinestatic

Definition at line 111 of file StmtCXX.h.

CXXTryStmt * CXXTryStmt::Create ( const ASTContext C,
SourceLocation  tryLoc,
Stmt tryBlock,
ArrayRef< Stmt * >  handlers 
)
static
CXXTryStmt * CXXTryStmt::Create ( const ASTContext C,
EmptyShell  Empty,
unsigned  numHandlers 
)
static

Definition at line 833 of file Stmt.cpp.

References clang::ASTContext::Allocate().

SourceLocation clang::CXXTryStmt::getEndLoc ( ) const
inline

Definition at line 92 of file StmtCXX.h.

Referenced by getLocEnd().

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

Definition at line 107 of file StmtCXX.h.

SourceLocation clang::CXXTryStmt::getLocEnd ( ) const
inline

Definition at line 89 of file StmtCXX.h.

References getEndLoc().

SourceLocation clang::CXXTryStmt::getLocStart ( ) const
inline

Definition at line 88 of file StmtCXX.h.

References getTryLoc().

unsigned clang::CXXTryStmt::getNumHandlers ( ) const
inline
CompoundStmt* clang::CXXTryStmt::getTryBlock ( )
inline
const CompoundStmt* clang::CXXTryStmt::getTryBlock ( ) const
inline

Definition at line 99 of file StmtCXX.h.

SourceLocation clang::CXXTryStmt::getTryLoc ( ) const
inline

Definition at line 91 of file StmtCXX.h.

Referenced by getLocStart(), and clang::ASTNodeImporter::VisitCXXTryStmt().

Friends And Related Function Documentation

friend class ASTStmtReader
friend

Definition at line 119 of file StmtCXX.h.


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