[PATCH] D131067: [analyzer] Treat values passed as parameter as escaped
Thomas Weißschuh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 04:43:10 PDT 2022
t-8ch added a comment.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp:537
+ CallExpr::const_arg_range Args) {
+ for (const auto It : llvm::zip(FD->parameters(), Args)) {
+ if (!std::get<0>(It)->getType()->isReferenceType())
----------------
steakhal wrote:
> I think as we are on C++17 now, we could use structured bindings. WDYT?
Sounds good, will update.
Note that "now" means since three days ago :-)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131067/new/
https://reviews.llvm.org/D131067
More information about the cfe-commits
mailing list