[Lldb-commits] [lldb] [lldb] Add std::*_ordering summary providers (PR #174195)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 2 06:46:30 PST 2026


================
@@ -0,0 +1,42 @@
+"""
+Test std::*_ordering summary.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+class StdOrderingTestCase(TestBase):
+    def do_test(self):
+        lldbutil.run_to_source_breakpoint(
+            self, "// break here", lldb.SBFileSpec("main.cpp")
+        )
+
+        self.expect(
+            "frame variable",
+            substrs=[
+                "(std::partial_ordering) po_less = less",
+                "(std::partial_ordering) po_equivalent = equivalent",
+                "(std::partial_ordering) po_greater = greater",
+                "(std::partial_ordering) po_unordered = unordered",
+                "(std::weak_ordering) wo_less = less",
+                "(std::weak_ordering) wo_equivalent = equivalent",
+                "(std::weak_ordering) wo_greater = greater",
+                "(std::strong_ordering) so_less = less",
+                "(std::strong_ordering) so_equal = equal",
+                "(std::strong_ordering) so_equivalent = equal",
----------------
da-viper wrote:

do we distinguish strong_ordering::equal rom strong_ordering::equivalent even though they are semantically the same ? 


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


More information about the lldb-commits mailing list