forked from qt-creator/qt-creator
Clang: Remove pointless empty line in diagnostic tooltip widget
...for diagnostics coming from clazy/tidy. Change-Id: I73a1db74f075c1ec15ff16fc07da012451729097 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -165,7 +165,9 @@ private:
|
|||||||
|
|
||||||
QString text;
|
QString text;
|
||||||
|
|
||||||
if (m_displayHints.showCategoryAndEnableOption)
|
// Diagnostics from clazy/tidy do not have any category or option set, so
|
||||||
|
// avoid to add an empty line.
|
||||||
|
if (m_displayHints.showCategoryAndEnableOption && !diagnostic.category().isEmpty())
|
||||||
text.append(diagnosticCategoryAndEnableOptionRow(diagnostic));
|
text.append(diagnosticCategoryAndEnableOptionRow(diagnostic));
|
||||||
text.append(diagnosticRow(diagnostic, IndentMode::DoNotIndent));
|
text.append(diagnosticRow(diagnostic, IndentMode::DoNotIndent));
|
||||||
text.append(diagnosticRowsForChildren(diagnostic));
|
text.append(diagnosticRowsForChildren(diagnostic));
|
||||||
|
Reference in New Issue
Block a user