From 606efdfeb9eef70871eb62a26dfd115e209e899c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 3 Nov 2007 00:34:02 +0000 Subject: [PATCH] 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 --- include/clang/AST/Stmt.h | 9 ++++++--- 1 file 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()); -- 2.50.1