================ @@ -192,6 +198,9 @@ class ConstString { return llvm::StringRef(m_string, GetLength()); } + /// Get the string value as a std::string + std::string GetString() const { return std::string(m_string, GetLength()); } ---------------- JDevlieghere wrote:
It's not necessary, it's more for consistency with how we already do things (similar to how `StringRef` has the explicit operator and the `.str()` method on the llvm side). https://github.com/llvm/llvm-project/pull/79649 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits