[Lldb-commits] [lldb] [lldb/Interpreter] Add requirements to Scripted Interface abstract methods (PR #109063)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 18 16:08:53 PDT 2024


================
@@ -78,8 +100,11 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
     using namespace python;
     using Locker = ScriptInterpreterPythonImpl::Locker;
 
-    auto create_error = [](std::string message) {
-      return llvm::createStringError(llvm::inconvertibleErrorCode(), message);
+    Log *log = GetLog(LLDBLog::Script);
+    auto create_error = [](llvm::StringRef format, auto &&...ts) {
----------------
medismailben wrote:

Made it an `llvm::StringLitteral` instead ;)

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


More information about the lldb-commits mailing list