Skip to content

Commit 1329fec

Browse files
committed
fixup! also move the string
1 parent 5f367e3 commit 1329fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ class StoringDiagnosticConsumer : public clang::DiagnosticConsumer {
6767
IDAndDiagnostic;
6868
std::vector<IDAndDiagnostic> m_diagnostics;
6969
std::unique_ptr<clang::DiagnosticOptions> m_diag_opts;
70+
/// Output string filled by m_os. Will be reused for different diagnostics.
71+
std::string m_output;
7072
/// Output stream of m_diag_printer.
7173
std::unique_ptr<llvm::raw_string_ostream> m_os;
7274
/// The DiagnosticPrinter used for creating the full diagnostic messages
7375
/// that are stored in m_diagnostics.
7476
std::unique_ptr<clang::TextDiagnosticPrinter> m_diag_printer;
75-
/// Output string filled by m_os. Will be reused for different diagnostics.
76-
std::string m_output;
7777
/// A Progress with explicitly managed lifetime.
7878
std::unique_ptr<Progress> m_current_progress_up;
7979
std::vector<std::string> m_module_build_stack;

0 commit comments

Comments
 (0)