]> granicus.if.org Git - clang/commitdiff
Provide const and none-const version of methods accessing various @catch nodes
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 3 Nov 2007 00:34:02 +0000 (00:34 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 3 Nov 2007 00:34:02 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43653 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h

index 760b0c5187f4db8d2101086c2e7b6f7243f0524c..50de8059a0749e8e891a06329bfe209c82ab0c97 100644 (file)
@@ -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());