summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-11-15 15:06:11 +0000
committerSam McCall <sam.mccall@gmail.com>2018-11-15 15:06:11 +0000
commit35f3da1925f4f5ba5830108db44f053f917b7d55 (patch)
tree5a7e890047bfc7c6b7d319f09acc97f5467b8e7a /clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
parente98ec77a95a9045e47d13c9f5f0df7d912997026 (diff)
downloadbcm5719-llvm-35f3da1925f4f5ba5830108db44f053f917b7d55.tar.gz
bcm5719-llvm-35f3da1925f4f5ba5830108db44f053f917b7d55.zip
[clang-tidy] Update checks to play nicely with limited traversal scope added in r346847
Summary: (See D54204 for original review) Reviewers: hokein Subscribers: xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D54579 llvm-svn: 346961
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
index 54bf941ffb2..352a403f928 100644
--- a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
@@ -899,7 +899,7 @@ void LoopConvertCheck::check(const MatchFinder::MatchResult &Result) {
// variable declared inside the loop outside of it.
// FIXME: Determine when the external dependency isn't an expression converted
// by another loop.
- TUInfo->getParentFinder().gatherAncestors(Context->getTranslationUnitDecl());
+ TUInfo->getParentFinder().gatherAncestors(*Context);
DependencyFinderASTVisitor DependencyFinder(
&TUInfo->getParentFinder().getStmtToParentStmtMap(),
&TUInfo->getParentFinder().getDeclToParentStmtMap(),
OpenPOWER on IntegriCloud