diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-11-15 15:06:11 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-11-15 15:06:11 +0000 |
commit | 35f3da1925f4f5ba5830108db44f053f917b7d55 (patch) | |
tree | 5a7e890047bfc7c6b7d319f09acc97f5467b8e7a /clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp | |
parent | e98ec77a95a9045e47d13c9f5f0df7d912997026 (diff) | |
download | bcm5719-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.cpp | 2 |
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(), |