llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) <details> <summary>Changes</summary> Identified with modernize-loop-convert. --- Full diff: https://github.com/llvm/llvm-project/pull/169175.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp (+2-3) ``````````diff diff --git a/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp index 7cc146ed29d0d..e71fe47bb8792 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp @@ -322,13 +322,12 @@ bool CallAndMessageChecker::PreVisitProcessArg( else { os << " (e.g., via the field chain: '"; bool first = true; - for (SmallVectorImpl<const FieldDecl *>::iterator - DI = F.FieldChain.begin(), DE = F.FieldChain.end(); DI!=DE;++DI){ + for (const FieldDecl *FD : F.FieldChain) { if (first) first = false; else os << '.'; - os << **DI; + os << *FD; } os << "')"; } `````````` </details> https://github.com/llvm/llvm-project/pull/169175 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
