forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.10'
Conflicts: CMakeLists.txt tests/unit/unittest/unittest.pro Change-Id: I64296ad31502d9b35012da129a28e9277e9fcf8e
This commit is contained in:
@@ -477,6 +477,16 @@ void ClangToolRunControl::finalize()
|
||||
if (m_filesNotAnalyzed != 0) {
|
||||
QString msg = tr("%1: Not all files could be analyzed.").arg(toolName);
|
||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||
if (m_target && !m_target->activeBuildConfiguration()->buildDirectory().exists()
|
||||
&& !ClangToolsProjectSettingsManager::getSettings(m_target->project())
|
||||
->buildBeforeAnalysis()) {
|
||||
msg = tr("%1: You might need to build the project to generate or update source "
|
||||
"files. To build automatically, enable \"Build the project before starting "
|
||||
"analysis\".")
|
||||
.arg(toolName);
|
||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||
}
|
||||
|
||||
TaskHub::requestPopup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user