forked from qt-creator/qt-creator
ProjectExplorer: Promote CppProjectUpdaterInterface
... to ProjectExplorer::ProjectUpdaterInterface and generalize it regarding language, but create a convience function for the C++ case, as that's the only user right now. Also add the self-registering factory boilerplate and adapt all buildsystems. Change-Id: If928512609d41c25fad2aa58633c8bffabc4c48f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
|
||||
#include "makefileparserthread.h"
|
||||
|
||||
#include <cppeditor/cppprojectupdater.h>
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/projectupdater.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <qtsupport/qtcppkitinfo.h>
|
||||
|
||||
#include <utils/filesystemwatcher.h>
|
||||
@@ -20,7 +22,7 @@ namespace AutotoolsProjectManager::Internal {
|
||||
|
||||
AutotoolsBuildSystem::AutotoolsBuildSystem(Target *target)
|
||||
: BuildSystem(target)
|
||||
, m_cppCodeModelUpdater(new CppEditor::CppProjectUpdater)
|
||||
, m_cppCodeModelUpdater(ProjectUpdaterFactory::createCppProjectUpdater())
|
||||
{
|
||||
connect(target, &Target::activeBuildConfigurationChanged, this, [this] { requestParse(); });
|
||||
connect(target->project(), &Project::projectFileIsDirty, this, [this] { requestParse(); });
|
||||
|
Reference in New Issue
Block a user