aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/performance
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-08-09 22:43:02 +0000
committerStephen Kelly <steveire@gmail.com>2018-08-09 22:43:02 +0000
commita32ea61ae09dc772fd7f688a89a0bd07c1bcc4f1 (patch)
tree52290d59333c69de31f8ddc393a17610db34b879 /clang-tidy/performance
parent4cacbf2c444f87871805c14748142cd9d92ff716 (diff)
Port getLocEnd -> getEndLoc
Subscribers: nemanjai, ioeric, kbarton, cfe-commits Differential Revision: https://reviews.llvm.org/D50355 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@339401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/performance')
-rw-r--r--clang-tidy/performance/FasterStringFindCheck.cpp2
-rw-r--r--clang-tidy/performance/MoveConstArgCheck.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/clang-tidy/performance/FasterStringFindCheck.cpp b/clang-tidy/performance/FasterStringFindCheck.cpp
index 71e5e408..0c3d249f 100644
--- a/clang-tidy/performance/FasterStringFindCheck.cpp
+++ b/clang-tidy/performance/FasterStringFindCheck.cpp
@@ -96,7 +96,7 @@ void FasterStringFindCheck::check(const MatchFinder::MatchResult &Result) {
<< FindFunc
<< FixItHint::CreateReplacement(
CharSourceRange::getTokenRange(Literal->getBeginLoc(),
- Literal->getLocEnd()),
+ Literal->getEndLoc()),
*Replacement);
}
diff --git a/clang-tidy/performance/MoveConstArgCheck.cpp b/clang-tidy/performance/MoveConstArgCheck.cpp
index c9c7be19..c64769f6 100644
--- a/clang-tidy/performance/MoveConstArgCheck.cpp
+++ b/clang-tidy/performance/MoveConstArgCheck.cpp
@@ -26,8 +26,8 @@ static void ReplaceCallWithArg(const CallExpr *Call, DiagnosticBuilder &Diag,
CharSourceRange::getCharRange(Call->getBeginLoc(), Arg->getBeginLoc()),
SM, LangOpts);
CharSourceRange AfterArgumentsRange = Lexer::makeFileCharRange(
- CharSourceRange::getCharRange(Call->getLocEnd(),
- Call->getLocEnd().getLocWithOffset(1)),
+ CharSourceRange::getCharRange(Call->getEndLoc(),
+ Call->getEndLoc().getLocWithOffset(1)),
SM, LangOpts);
if (BeforeArgumentsRange.isValid() && AfterArgumentsRange.isValid()) {