[Lldb-commits] [lldb] [lldb] Streamline ConstString -> std::string conversion (NFC) (PR #79649)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 26 14:42:19 PST 2024


================
@@ -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()); }
----------------
felipepiovezan wrote:

why is this necessary, if we have the explicit operator?

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


More information about the lldb-commits mailing list