[cfe-commits] r43653 - /cfe/trunk/include/clang/AST/Stmt.h
Fariborz Jahanian
fjahanian at apple.com
Fri Nov 2 17:34:02 PDT 2007
Author: fjahanian
Date: Fri Nov 2 19:34:02 2007
New Revision: 43653
URL: http://llvm.org/viewvc/llvm-project?rev=43653&view=rev
Log:
Provide const and none-const version of methods accessing various @catch nodes
Modified:
cfe/trunk/include/clang/AST/Stmt.h
Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=43653&r1=43652&r2=43653&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Fri Nov 2 19:34:02 2007
@@ -686,9 +686,12 @@
}
}
- 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());
More information about the cfe-commits
mailing list