clang API Documentation
A C++ throw-expression (C++ [except.throw]). More...
#include <ExprCXX.h>
Public Member Functions | |
CXXThrowExpr (Expr *expr, QualType Ty, SourceLocation l, bool IsThrownVariableInScope) | |
CXXThrowExpr (EmptyShell Empty) | |
const Expr * | getSubExpr () const |
Expr * | getSubExpr () |
SourceLocation | getThrowLoc () const |
bool | isThrownVariableInScope () const |
Determines whether the variable thrown by this expression (if any!) is within the innermost try block. | |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
A C++ throw-expression (C++ [except.throw]).
This handles 'throw' (for re-throwing the current exception) and 'throw' assignment-expression. When assignment-expression isn't present, Op will be null.
clang::CXXThrowExpr::CXXThrowExpr | ( | Expr * | expr, |
QualType | Ty, | ||
SourceLocation | l, | ||
bool | IsThrownVariableInScope | ||
) | [inline] |
clang::CXXThrowExpr::CXXThrowExpr | ( | EmptyShell | Empty | ) | [inline] |
child_range clang::CXXThrowExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::CXXThrowExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 840 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
SourceLocation clang::CXXThrowExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 834 of file ExprCXX.h.
References clang::Stmt::getLocEnd(), and getSubExpr().
SourceLocation clang::CXXThrowExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
const Expr* clang::CXXThrowExpr::getSubExpr | ( | ) | const [inline] |
Definition at line 821 of file ExprCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXThrowExpr(), and getLocEnd().
Expr* clang::CXXThrowExpr::getSubExpr | ( | ) | [inline] |
SourceLocation clang::CXXThrowExpr::getThrowLoc | ( | ) | const [inline] |
bool clang::CXXThrowExpr::isThrownVariableInScope | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.