Deleted Added
full compact
StmtCXX.h (198092) StmtCXX.h (199990)
1//===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 28 unchanged lines hidden (view full) ---

37 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl),
38 HandlerBlock(handlerBlock) {}
39
40 virtual SourceRange getSourceRange() const {
41 return SourceRange(CatchLoc, HandlerBlock->getLocEnd());
42 }
43
44 SourceLocation getCatchLoc() const { return CatchLoc; }
1//===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 28 unchanged lines hidden (view full) ---

37 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl),
38 HandlerBlock(handlerBlock) {}
39
40 virtual SourceRange getSourceRange() const {
41 return SourceRange(CatchLoc, HandlerBlock->getLocEnd());
42 }
43
44 SourceLocation getCatchLoc() const { return CatchLoc; }
45 VarDecl *getExceptionDecl() { return ExceptionDecl; }
46 QualType getCaughtType();
47 Stmt *getHandlerBlock() { return HandlerBlock; }
45 VarDecl *getExceptionDecl() const { return ExceptionDecl; }
46 QualType getCaughtType() const;
47 Stmt *getHandlerBlock() const { return HandlerBlock; }
48
49 static bool classof(const Stmt *T) {
50 return T->getStmtClass() == CXXCatchStmtClass;
51 }
52 static bool classof(const CXXCatchStmt *) { return true; }
53
54 virtual child_iterator child_begin();
55 virtual child_iterator child_end();

--- 46 unchanged lines hidden ---
48
49 static bool classof(const Stmt *T) {
50 return T->getStmtClass() == CXXCatchStmtClass;
51 }
52 static bool classof(const CXXCatchStmt *) { return true; }
53
54 virtual child_iterator child_begin();
55 virtual child_iterator child_end();

--- 46 unchanged lines hidden ---