[Lldb-commits] [lldb] [lldb][NFC] Create StackID::IsYounger (PR #209402)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 14 02:47:06 PDT 2026


================
@@ -50,6 +50,11 @@ class StackID {
 
   void Dump(Stream *s);
 
+  /// Returns true if `lhs` corresponds to a frame younger (i.e. higher on the
+  /// call stack) than `rhs`, and false otherwise (including when the frames are
+  /// not comparable).
+  static bool IsYounger(const StackID &lhs, const StackID &rhs);
----------------
felipepiovezan wrote:

No sorting done today, I believe. The member function approach does indeed read nicer, I'll do it.

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


More information about the lldb-commits mailing list