[lldb][NFC] Minor fixes for lldb_private::DiagnosticManager

llvm-svn: 368582
This commit is contained in:
Raphael Isemann 2019-08-12 14:37:12 +00:00
parent 119d1c278c
commit df8bdcadf9
1 changed files with 2 additions and 4 deletions

View File

@ -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: