[PATCH] D153273: [analyzer] Rework support for CFGScopeBegin, CFGScopeEnd, CFGLifetime elements
Tomasz KamiĆski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 12 04:39:19 PDT 2023
tomasz-kaminski-sonarsource added inline comments.
================
Comment at: clang/lib/Analysis/CFG.cpp:1936-1938
+ for (LocalScope::const_iterator I = DstPos; I != BasePos; ++I)
+ if (I.pointsToFirstDeclaredVar())
+ appendScopeBegin(Block, *I, S);
----------------
steakhal wrote:
> Probably, we could also use a `llvm::make_range(DstPos, BasePos)` here, but I'm not sure if that's more readable or not.
We need to call iterator member function `I` here, so we cannot replace it with the range.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153273/new/
https://reviews.llvm.org/D153273
More information about the cfe-commits
mailing list