================ @@ -135,6 +135,21 @@ std::vector<std::string> GetStrings(const llvm::json::Object *obj, return strs; } +static std::string GetDescriptionTrimmed(lldb::SBValue &value) { ---------------- walter-erquinigo wrote:
add a comment for this function mentioning that this returns an empty string if the description is not available. You can also change the return type to optional<std::string>, which might be cleaner. https://github.com/llvm/llvm-project/pull/77026 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits