[clang] [analyzer][NFC] Add StackFrame parent-chain range helpers (PR #210938)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 04:16:23 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 {
----------------
Xazax-hun wrote:

Alternative name for your consideration (no strong preference): `callstack`.

https://github.com/llvm/llvm-project/pull/210938


More information about the cfe-commits mailing list