[clang] [analyzer][NFC] Add StackFrame parent-chain range helpers (PR #210938)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 04:24:36 PDT 2026
================
@@ -103,6 +103,11 @@ class CheckerContext {
const StackFrame *getStackFrame() const { return Pred->getStackFrame(); }
+ /// Iterates over the current stack frame and all of its ancestors.
+ llvm::iterator_range<StackFrame::parent_iterator> stackframes() const {
----------------
steakhal wrote:
No, I didn't think about that. I wanted to keep the relation to `getStackFrame` because it essentially does the same. I think the symmetry there outweights any benefit of a potentially more suitable name regardless - so I wasn't looking.
https://github.com/llvm/llvm-project/pull/210938
More information about the cfe-commits
mailing list