diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:42:26 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:42:26 +0000 |
commit | 43465bf3fd6cca715187ee7286c881cb210fc3c4 (patch) | |
tree | c2aad6e9cadd0b7164c476722704660c4b84b5e5 /clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp | |
parent | d54b7f059290102b0ff007843ecf0668e833c118 (diff) | |
download | bcm5719-llvm-43465bf3fd6cca715187ee7286c881cb210fc3c4.tar.gz bcm5719-llvm-43465bf3fd6cca715187ee7286c881cb210fc3c4.zip |
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
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp b/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp index 71286e29761..e4f8ebce565 100644 --- a/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp @@ -36,13 +36,11 @@ public: auto Hint = Aliaser->createAlias(*Result.Context, *Call, "::foo::bar", {"b", "some_alias"}); if (Hint.hasValue()) - diag(Call->getLocStart(), "Fix for testing") << Hint.getValue(); + diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); - diag(Call->getLocStart(), "insert call") - << FixItHint::CreateInsertion( - Call->getLocStart(), - Aliaser->getNamespaceName(*Result.Context, *Call, "::foo::bar") + - "::"); + diag(Call->getBeginLoc(), "insert call") << FixItHint::CreateInsertion( + Call->getBeginLoc(), + Aliaser->getNamespaceName(*Result.Context, *Call, "::foo::bar") + "::"); } private: |