[Lldb-commits] [lldb] [lldb] Quote module name in error message (PR #137083)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 23 16:25:52 PDT 2025


https://github.com/adrian-prantl created https://github.com/llvm/llvm-project/pull/137083

None

>From 05a5eb1eb5ac4ea32c98783cd1a241c7e147e30d Mon Sep 17 00:00:00 2001
From: Adrian Prantl <aprantl at apple.com>
Date: Wed, 23 Apr 2025 16:24:49 -0700
Subject: [PATCH] [lldb] Quote module name in error message

---
 .../Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
index 5b1353454a1c6..3eb5c3b2101b5 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
@@ -330,7 +330,7 @@ bool ClangModulesDeclVendorImpl::AddModule(const SourceModule &module,
     }
   }
   if (!HS.lookupModule(module.path.front().GetStringRef())) {
-    error_stream.Printf("error: Header search couldn't locate module %s\n",
+    error_stream.Printf("error: Header search couldn't locate module '%s'\n",
                         module.path.front().AsCString());
     return false;
   }



More information about the lldb-commits mailing list