diff --git a/src/plugins/cmakeprojectmanager/cmakelocatorfilter.cpp b/src/plugins/cmakeprojectmanager/cmakelocatorfilter.cpp index 00431ee3b5b..b4628f02818 100644 --- a/src/plugins/cmakeprojectmanager/cmakelocatorfilter.cpp +++ b/src/plugins/cmakeprojectmanager/cmakelocatorfilter.cpp @@ -27,6 +27,7 @@ #include "cmakebuildstep.h" #include "cmakeproject.h" +#include #include #include #include diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.h b/src/plugins/cmakeprojectmanager/cmakeproject.h index f7e3bac6260..f214592d8fd 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.h +++ b/src/plugins/cmakeprojectmanager/cmakeproject.h @@ -26,22 +26,13 @@ #pragma once #include "cmake_global.h" -#include "cmakeprojectnodes.h" #include #include -#include -#include -#include -#include -#include #include #include -#include -#include -#include QT_BEGIN_NAMESPACE class QFileSystemWatcher; @@ -50,7 +41,6 @@ QT_END_NAMESPACE namespace CMakeProjectManager { namespace Internal { -class BuildDirManager; class CMakeFile; class CMakeBuildSettingsWidget; class CMakeBuildConfiguration; @@ -92,22 +82,22 @@ class CMAKE_EXPORT CMakeProject : public ProjectExplorer::Project friend class Internal::CMakeBuildSettingsWidget; public: CMakeProject(Internal::CMakeManager *manager, const Utils::FileName &filename); - ~CMakeProject() override; + ~CMakeProject() final; - QString displayName() const override; + QString displayName() const final; - QStringList files(FilesMode fileMode) const override; + QStringList files(FilesMode fileMode) const final; QStringList buildTargetTitles(bool runnable = false) const; QList buildTargets() const; bool hasBuildTarget(const QString &title) const; CMakeBuildTarget buildTargetForTitle(const QString &title); - bool needsConfiguration() const override; - bool requiresTargetPanel() const override; - bool knowsAllBuildExecutables() const override; + bool needsConfiguration() const final; + bool requiresTargetPanel() const final; + bool knowsAllBuildExecutables() const final; - bool supportsKit(ProjectExplorer::Kit *k, QString *errorMessage = 0) const override; + bool supportsKit(ProjectExplorer::Kit *k, QString *errorMessage = 0) const final; void runCMake(); @@ -116,8 +106,8 @@ signals: void parsingStarted(); protected: - RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) override; - bool setupTarget(ProjectExplorer::Target *t) override; + RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) final; + bool setupTarget(ProjectExplorer::Target *t) final; private: void handleCmakeFileChanged(); @@ -132,7 +122,7 @@ private: void gatherFileNodes(ProjectExplorer::FolderNode *parent, QList &list) const; ProjectExplorer::FolderNode *findOrCreateFolder(Internal::CMakeProjectNode *rootNode, QString directory); void createGeneratedCodeModelSupport(); - QStringList filesGeneratedFrom(const QString &sourceFile) const override; + QStringList filesGeneratedFrom(const QString &sourceFile) const final; void updateTargetRunConfigurations(ProjectExplorer::Target *t); void updateApplicationAndDeploymentTargets(); QStringList getCXXFlagsFor(const CMakeBuildTarget &buildTarget, QHash &cache);