From 43465bf3fd6cca715187ee7286c881cb210fc3c4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 9 Aug 2018 22:42:26 +0000 Subject: Port getLocStart -> getBeginLoc Reviewers: javed.absar Subscribers: nemanjai, kbarton, ilya-biryukov, ioeric, jkorous, arphaman, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50354 llvm-svn: 339400 --- clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp') diff --git a/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp b/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp index 9e465a0cb9b..16d25192446 100644 --- a/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp @@ -39,9 +39,9 @@ public: Inserter->createUsingDeclaration(*Result.Context, *Call, "::foo::func"); if (Hint.hasValue()) - diag(Call->getLocStart(), "Fix for testing") << Hint.getValue(); + diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); - diag(Call->getLocStart(), "insert call") + diag(Call->getBeginLoc(), "insert call") << clang::FixItHint::CreateReplacement( Call->getCallee()->getSourceRange(), Inserter->getShortName(*Result.Context, *Call, "::foo::func")); -- cgit v1.2.3