diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-11-03 00:34:02 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-11-03 00:34:02 +0000 |
commit | 606efdfeb9eef70871eb62a26dfd115e209e899c (patch) | |
tree | 53c569275fd2d1821fc05d510d139379fcfede92 | |
parent | 7794cb85d394750db0631c02b7aa7837ae56764c (diff) |
Provide const and none-const version of methods accessing various @catch nodes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43653 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Stmt.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 760b0c5187..50de8059a0 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -686,9 +686,12 @@ public: } } - Stmt *getCatchBody() const { return SubExprs[BODY]; } - Stmt *getNextCatchStmt() const { return NextAtCatchStmt; } - Stmt *getCatchParamStmt() const { return SubExprs[SELECTOR]; } + const Stmt *getCatchBody() const { return SubExprs[BODY]; } + Stmt *getCatchBody() { return SubExprs[BODY]; } + const Stmt *getNextCatchStmt() const { return NextAtCatchStmt; } + Stmt *getNextCatchStmt() { return NextAtCatchStmt; } + const Stmt *getCatchParamStmt() const { return SubExprs[SELECTOR]; } + Stmt *getCatchParamStmt() { return SubExprs[SELECTOR]; } virtual SourceRange getSourceRange() const { return SourceRange(AtCatchLoc, SubExprs[BODY]->getLocEnd()); |