[Lldb-commits] [lldb] [lldb-dap] Updating VariableDescription to use GetDescription() as a fallback. (PR #77026)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 9 13:05:07 PST 2024


================
@@ -135,6 +135,21 @@ std::vector<std::string> GetStrings(const llvm::json::Object *obj,
   return strs;
 }
 
+static std::string GetDescriptionTrimmed(lldb::SBValue &value) {
+  lldb::SBStream stream;
+  if (!value.GetDescription(stream)) {
+    return "";
+  }
----------------
walter-erquinigo wrote:

remove unnecessary braces

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


More information about the lldb-commits mailing list