const char *lParenLoc = strchr(startBuf, '(');
- if (!catchStmt) { // handle "..."
+ if (catchList->hasEllipsis()) {
// Now rewrite the body...
lastCatchBody = catchList->getCatchBody();
SourceLocation rParenLoc = catchList->getRParenLoc();
virtual SourceRange getSourceRange() const {
return SourceRange(AtCatchLoc, SubExprs[BODY]->getLocEnd());
}
-
+
+ bool hasEllipsis() const { return getCatchParamStmt() == 0; }
+
static bool classof(const Stmt *T) {
return T->getStmtClass() == ObjCAtCatchStmtClass;
}