================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits