@@ -32,9 +32,9 @@ class CommandReturnObject {
3232 ~CommandReturnObject () = default ;
3333
3434 // / Format any inline diagnostics with an indentation of \c indent.
35- std::string GetInlineDiagnosticString (unsigned indent);
35+ std::string GetInlineDiagnosticString (unsigned indent) const ;
3636
37- llvm::StringRef GetOutputString () {
37+ llvm::StringRef GetOutputString () const {
3838 lldb::StreamSP stream_sp (m_out_stream.GetStreamAtIndex (eStreamStringIndex));
3939 if (stream_sp)
4040 return std::static_pointer_cast<StreamString>(stream_sp)->GetString ();
@@ -46,7 +46,7 @@ class CommandReturnObject {
4646 // / If \c with_diagnostics is true, all diagnostics are also
4747 // / rendered into the string. Otherwise the expectation is that they
4848 // / are fetched with \ref GetInlineDiagnosticString().
49- std::string GetErrorString (bool with_diagnostics = true );
49+ std::string GetErrorString (bool with_diagnostics = true ) const ;
5050 StructuredData::ObjectSP GetErrorData ();
5151
5252 Stream &GetOutputStream () {
@@ -95,11 +95,11 @@ class CommandReturnObject {
9595 m_err_stream.SetStreamAtIndex (eImmediateStreamIndex, stream_sp);
9696 }
9797
98- lldb::StreamSP GetImmediateOutputStream () {
98+ lldb::StreamSP GetImmediateOutputStream () const {
9999 return m_out_stream.GetStreamAtIndex (eImmediateStreamIndex);
100100 }
101101
102- lldb::StreamSP GetImmediateErrorStream () {
102+ lldb::StreamSP GetImmediateErrorStream () const {
103103 return m_err_stream.GetStreamAtIndex (eImmediateStreamIndex);
104104 }
105105
0 commit comments