forked from qt-creator/qt-creator
ClangStaticAnalyzer: Ensure to pop up the issues pane on errors
...at the end. For cases where msvc parses/compiles fine but clang not, the issues pane was not always shown in the end. Task-number: QCE-62 Change-Id: Iab979b664e37dc7b35c2418566a7af74a4907829 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -498,9 +498,9 @@ void ClangStaticAnalyzerRunControl::finalize()
|
|||||||
+ QLatin1Char('\n'),
|
+ QLatin1Char('\n'),
|
||||||
Utils::NormalMessageFormat);
|
Utils::NormalMessageFormat);
|
||||||
|
|
||||||
if (m_filesAnalyzed == 0 && m_filesNotAnalyzed != 0) {
|
if (m_filesNotAnalyzed != 0) {
|
||||||
AnalyzerUtils::logToIssuesPane(Task::Error,
|
AnalyzerUtils::logToIssuesPane(Task::Error,
|
||||||
tr("Clang Static Analyzer: Failed to analyze any files."));
|
tr("Clang Static Analyzer: Not all files could be analyzed."));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_progress.reportFinished();
|
m_progress.reportFinished();
|
||||||
|
|||||||
Reference in New Issue
Block a user