================ @@ -0,0 +1,27 @@ +""" +Tests whether the do-what-I-mean (DWIM) print `po` alias applies FixIts like `expr` does +""" +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class CPP_DWIM_Fixit_TestCase(TestBase): + def test_with_run_command(self): + "Confirm that the `po` command (alias) applies a FixIt " \ + "and prints it out to the console, " \ + "just like the `expression` command." + + self.build() + lldbutil.run_to_source_breakpoint( + self, "// break here", lldb.SBFileSpec("main.cpp") + ) + + self.expect( + "po class C { int i; void f() { []() { ++i; }(); } }", ---------------- adrian-prantl wrote:
this should call the underlying `dwim-print -O --` command and not rely on the alias being there https://github.com/llvm/llvm-project/pull/68452 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits