forked from OSchip/llvm-project
[lldb][NFC] Minor fixes for lldb_private::DiagnosticManager
llvm-svn: 368582
This commit is contained in:
parent
119d1c278c
commit
df8bdcadf9
|
@ -106,7 +106,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
bool HasFixIts() {
|
||||
bool HasFixIts() const {
|
||||
for (Diagnostic *diag : m_diagnostics) {
|
||||
if (diag->HasFixIts())
|
||||
return true;
|
||||
|
@ -130,10 +130,9 @@ public:
|
|||
void PutString(DiagnosticSeverity severity, llvm::StringRef str);
|
||||
|
||||
void AppendMessageToDiagnostic(llvm::StringRef str) {
|
||||
if (!m_diagnostics.empty()) {
|
||||
if (!m_diagnostics.empty())
|
||||
m_diagnostics.back()->AppendMessage(str);
|
||||
}
|
||||
}
|
||||
|
||||
// Returns a string containing errors in this format:
|
||||
//
|
||||
|
@ -149,7 +148,6 @@ public:
|
|||
// Moves fixed_expression to the internal storage.
|
||||
void SetFixedExpression(std::string fixed_expression) {
|
||||
m_fixed_expression = std::move(fixed_expression);
|
||||
fixed_expression.clear();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue