aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
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
commitc09197e0863d2b50439a79869a10ad4c893fb4d1 (patch)
treed644ff02a75cf80fd5723f2ee73d045c09e360bf /clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
parent43465bf3fd6cca715187ee7286c881cb210fc3c4 (diff)
downloadllvm-c09197e0863d2b50439a79869a10ad4c893fb4d1.zip
llvm-c09197e0863d2b50439a79869a10ad4c893fb4d1.tar.gz
llvm-c09197e0863d2b50439a79869a10ad4c893fb4d1.tar.bz2
Port getLocEnd -> getEndLoc
Subscribers: nemanjai, ioeric, kbarton, cfe-commits Differential Revision: https://reviews.llvm.org/D50355 llvm-svn: 339401
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp b/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
index 1d0d88d..583ed7a 100644
--- a/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
+++ b/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
@@ -129,7 +129,7 @@ void StaticAssertCheck::check(const MatchFinder::MatchResult &Result) {
FixItHints.push_back(FixItHint::CreateRemoval(
SourceRange(AssertExprRoot->getOperatorLoc())));
FixItHints.push_back(FixItHint::CreateRemoval(
- SourceRange(AssertMSG->getBeginLoc(), AssertMSG->getLocEnd())));
+ SourceRange(AssertMSG->getBeginLoc(), AssertMSG->getEndLoc())));
StaticAssertMSG = (Twine(", \"") + AssertMSG->getString() + "\"").str();
}