clang API Documentation
#include <StmtCXX.h>
Public Member Functions | |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
SourceLocation | getTryLoc () const |
SourceLocation | getEndLoc () const |
CompoundStmt * | getTryBlock () |
const CompoundStmt * | getTryBlock () const |
unsigned | getNumHandlers () const |
CXXCatchStmt * | getHandler (unsigned i) |
const CXXCatchStmt * | getHandler (unsigned i) const |
child_range | children () |
Static Public Member Functions | |
static CXXTryStmt * | Create (const ASTContext &C, SourceLocation tryLoc, Stmt *tryBlock, ArrayRef< Stmt * > handlers) |
static CXXTryStmt * | Create (const ASTContext &C, EmptyShell Empty, unsigned numHandlers) |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
CXXTryStmt - A C++ try block, including all handlers.
child_range clang::CXXTryStmt::children | ( | ) | [inline] |
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().
SourceLocation clang::CXXTryStmt::getEndLoc | ( | ) | const [inline] |
Definition at line 92 of file StmtCXX.h.
References clang::Stmt::getLocEnd().
Referenced by getLocEnd().
CXXCatchStmt* clang::CXXTryStmt::getHandler | ( | unsigned | i | ) | [inline] |
Definition at line 104 of file StmtCXX.h.
Referenced by clang::Sema::DiagnoseReturnInConstructorExceptionHandler(), clang::CodeGen::CodeGenFunction::EnterCXXTryStmt(), and clang::CodeGen::CodeGenFunction::ExitCXXTryStmt().
const CXXCatchStmt* clang::CXXTryStmt::getHandler | ( | unsigned | i | ) | const [inline] |
SourceLocation clang::CXXTryStmt::getLocEnd | ( | ) | const [inline] |
SourceLocation clang::CXXTryStmt::getLocStart | ( | ) | const [inline] |
unsigned clang::CXXTryStmt::getNumHandlers | ( | ) | const [inline] |
Definition at line 103 of file StmtCXX.h.
Referenced by children(), clang::Sema::DiagnoseReturnInConstructorExceptionHandler(), clang::CodeGen::CodeGenFunction::EnterCXXTryStmt(), and clang::CodeGen::CodeGenFunction::ExitCXXTryStmt().
CompoundStmt* clang::CXXTryStmt::getTryBlock | ( | ) | [inline] |
Definition at line 96 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXTryStmt().
const CompoundStmt* clang::CXXTryStmt::getTryBlock | ( | ) | const [inline] |
SourceLocation clang::CXXTryStmt::getTryLoc | ( | ) | const [inline] |
Definition at line 91 of file StmtCXX.h.
Referenced by getLocStart().
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.