diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:09:38 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:09:38 +0000 |
commit | 2dfd8132cf7984a86fd4cfc9d84f2195d60205ef (patch) | |
tree | 6af8bbd1c911945732be0a9272736594124e5b96 /include/clang/AST/StmtObjC.h | |
parent | d7b659b592e6aaa6659904d346a0cacfa18d1661 (diff) | |
download | clang-2dfd8132cf7984a86fd4cfc9d84f2195d60205ef.tar.gz |
Port getLocEnd -> getEndLoc
Reviewers: teemperor!
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D50351
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/StmtObjC.h')
-rw-r--r-- | include/clang/AST/StmtObjC.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/AST/StmtObjC.h b/include/clang/AST/StmtObjC.h index 8cb06a50b8..085a6c6df3 100644 --- a/include/clang/AST/StmtObjC.h +++ b/include/clang/AST/StmtObjC.h @@ -59,7 +59,7 @@ public: SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } SourceLocation getEndLoc() const LLVM_READONLY { - return SubExprs[BODY]->getLocEnd(); + return SubExprs[BODY]->getEndLoc(); } static bool classof(const Stmt *T) { @@ -109,7 +109,7 @@ public: SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); } SourceLocation getBeginLoc() const LLVM_READONLY { return AtCatchLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } - SourceLocation getEndLoc() const LLVM_READONLY { return Body->getLocEnd(); } + SourceLocation getEndLoc() const LLVM_READONLY { return Body->getEndLoc(); } bool hasEllipsis() const { return getCatchParamDecl() == nullptr; } @@ -141,7 +141,7 @@ public: SourceLocation getBeginLoc() const LLVM_READONLY { return AtFinallyLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } SourceLocation getEndLoc() const LLVM_READONLY { - return AtFinallyStmt->getLocEnd(); + return AtFinallyStmt->getEndLoc(); } SourceLocation getAtFinallyLoc() const { return AtFinallyLoc; } @@ -307,7 +307,7 @@ public: SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } SourceLocation getEndLoc() const LLVM_READONLY { - return getSynchBody()->getLocEnd(); + return getSynchBody()->getEndLoc(); } static bool classof(const Stmt *T) { @@ -343,7 +343,7 @@ public: SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } SourceLocation getEndLoc() const LLVM_READONLY { - return Throw ? Throw->getLocEnd() : AtThrowLoc; + return Throw ? Throw->getEndLoc() : AtThrowLoc; } static bool classof(const Stmt *T) { @@ -373,7 +373,7 @@ public: SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); } SourceLocation getEndLoc() const LLVM_READONLY { - return SubStmt->getLocEnd(); + return SubStmt->getEndLoc(); } SourceLocation getAtLoc() const { return AtLoc; } |