[Lldb-commits] [lldb] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (PR #112062)

Carlos Alberto Enciso via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 21 03:00:24 PDT 2024


CarlosAlbertoEnciso wrote:

@adrian-prantl It seems that this change is causing the 'lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp' to fail when building using GCC.

c2750807ba2a [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (#112062)
```
../llvm-project/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp:51:22:
error: ‘class lldb_private::CommandReturnObject’ has no member named ‘GetErrorData’;
did you mean ‘GetErrorStream’?
   51 |   EXPECT_TRUE(result.GetErrorData().starts_with(
```

After change:
9eddc8b9bf4e [lldb] Expose structured command diagnostics via the SBAPI. (#112109)
The error message changes to:
```
../llvm-project/lldb/unittests/ScriptInterpreter/Lua/ScriptInterpreterTests.cpp:51:37:
error: ‘lldb_private::StructuredData::ObjectSP’
 {aka ‘class std::shared_ptr<lldb_private::StructuredData::Object>’}
 has no member named ‘starts_with’
   51 |   EXPECT_TRUE(result.GetErrorData().starts_with(
```


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


More information about the lldb-commits mailing list