forked from qt-creator/qt-creator
ProjectExplorer: Use override consistently
clang-tidy fixes from modernize-use-override check. Change-Id: I216701aec0b4134321e220f9e599e053a8e22945 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -122,7 +122,7 @@ class PROJECTEXPLORER_EXPORT IBuildConfigurationFactory : public QObject
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
IBuildConfigurationFactory();
|
IBuildConfigurationFactory();
|
||||||
~IBuildConfigurationFactory();
|
~IBuildConfigurationFactory() override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// The priority is negative if this factory can not create anything for the target.
|
// The priority is negative if this factory can not create anything for the target.
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ class PROJECTEXPLORER_EXPORT BuildStepFactory : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
BuildStepFactory();
|
BuildStepFactory();
|
||||||
~BuildStepFactory();
|
~BuildStepFactory() override;
|
||||||
|
|
||||||
static const QList<BuildStepFactory *> allBuildStepFactories();
|
static const QList<BuildStepFactory *> allBuildStepFactories();
|
||||||
|
|
||||||
@@ -191,9 +191,9 @@ public:
|
|||||||
this, &BuildStepConfigWidget::updateSummary);
|
this, &BuildStepConfigWidget::updateSummary);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString summaryText() const { return QLatin1String("<b>") + displayName() + QLatin1String("</b>"); }
|
QString summaryText() const override { return QLatin1String("<b>") + displayName() + QLatin1String("</b>"); }
|
||||||
QString displayName() const { return m_step->displayName(); }
|
QString displayName() const override { return m_step->displayName(); }
|
||||||
bool showWidget() const { return false; }
|
bool showWidget() const override { return false; }
|
||||||
BuildStep *step() const { return m_step; }
|
BuildStep *step() const { return m_step; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ public:
|
|||||||
Target *target() const;
|
Target *target() const;
|
||||||
Project *project() const override;
|
Project *project() const override;
|
||||||
|
|
||||||
virtual QVariantMap toMap() const override;
|
QVariantMap toMap() const override;
|
||||||
virtual bool fromMap(const QVariantMap &map) override;
|
bool fromMap(const QVariantMap &map) override;
|
||||||
|
|
||||||
bool isActive() const override;
|
bool isActive() const override;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class PROJECTEXPLORER_EXPORT ClangParser : public ProjectExplorer::GccParser
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ClangParser();
|
ClangParser();
|
||||||
void stdError(const QString &line);
|
void stdError(const QString &line) override;
|
||||||
|
|
||||||
static Core::Id id();
|
static Core::Id id();
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class PROJECTEXPLORER_EXPORT ICustomWizardMetaFactory : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ICustomWizardMetaFactory(const QString &klass, Core::IWizardFactory::WizardKind kind);
|
ICustomWizardMetaFactory(const QString &klass, Core::IWizardFactory::WizardKind kind);
|
||||||
~ICustomWizardMetaFactory();
|
~ICustomWizardMetaFactory() override;
|
||||||
|
|
||||||
virtual CustomWizard *create() const = 0;
|
virtual CustomWizard *create() const = 0;
|
||||||
QString klass() const { return m_klass; }
|
QString klass() const { return m_klass; }
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class PROJECTEXPLORER_EXPORT IDeviceFactory : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
~IDeviceFactory();
|
~IDeviceFactory() override;
|
||||||
static const QList<IDeviceFactory *> allDeviceFactories();
|
static const QList<IDeviceFactory *> allDeviceFactories();
|
||||||
|
|
||||||
virtual QString displayNameForId(Core::Id type) const = 0;
|
virtual QString displayNameForId(Core::Id type) const = 0;
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
|
|
||||||
ProcessExtraCompiler(const Project *project, const Utils::FileName &source,
|
ProcessExtraCompiler(const Project *project, const Utils::FileName &source,
|
||||||
const Utils::FileNameList &targets, QObject *parent = nullptr);
|
const Utils::FileNameList &targets, QObject *parent = nullptr);
|
||||||
~ProcessExtraCompiler();
|
~ProcessExtraCompiler() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// This will run a process in a thread, if
|
// This will run a process in a thread, if
|
||||||
@@ -141,7 +141,7 @@ class PROJECTEXPLORER_EXPORT ExtraCompilerFactory : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit ExtraCompilerFactory(QObject *parent = nullptr);
|
explicit ExtraCompilerFactory(QObject *parent = nullptr);
|
||||||
~ExtraCompilerFactory();
|
~ExtraCompilerFactory() override;
|
||||||
|
|
||||||
virtual FileType sourceType() const = 0;
|
virtual FileType sourceType() const = 0;
|
||||||
virtual QString sourceTag() const = 0;
|
virtual QString sourceTag() const = 0;
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ public:
|
|||||||
void addToEnvironment(Utils::Environment &env) const override;
|
void addToEnvironment(Utils::Environment &env) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual CompilerFlags defaultCompilerFlags() const override;
|
CompilerFlags defaultCompilerFlags() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class Internal::ClangToolChainFactory;
|
friend class Internal::ClangToolChainFactory;
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ public:
|
|||||||
|
|
||||||
ItemList toUserOutput(const Kit *k) const override;
|
ItemList toUserOutput(const Kit *k) const override;
|
||||||
|
|
||||||
virtual void addToMacroExpander(ProjectExplorer::Kit *kit, Utils::MacroExpander *expander) const override;
|
void addToMacroExpander(ProjectExplorer::Kit *kit, Utils::MacroExpander *expander) const override;
|
||||||
|
|
||||||
static Core::Id id();
|
static Core::Id id();
|
||||||
static IDevice::ConstPtr device(const Kit *k);
|
static IDevice::ConstPtr device(const Kit *k);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ protected:
|
|||||||
explicit ProjectConfiguration(QObject *parent, Core::Id id);
|
explicit ProjectConfiguration(QObject *parent, Core::Id id);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
~ProjectConfiguration() = default;
|
~ProjectConfiguration() override = default;
|
||||||
|
|
||||||
Core::Id id() const;
|
Core::Id id() const;
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProjectImporter(const Utils::FileName &path);
|
ProjectImporter(const Utils::FileName &path);
|
||||||
virtual ~ProjectImporter();
|
~ProjectImporter() override;
|
||||||
|
|
||||||
const Utils::FileName projectFilePath() const { return m_projectPath; }
|
const Utils::FileName projectFilePath() const { return m_projectPath; }
|
||||||
const Utils::FileName projectDirectory() const { return m_projectPath.parentDir(); }
|
const Utils::FileName projectDirectory() const { return m_projectPath.parentDir(); }
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class PROJECTEXPLORER_EXPORT ProjectTree : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit ProjectTree(QObject *parent = nullptr);
|
explicit ProjectTree(QObject *parent = nullptr);
|
||||||
~ProjectTree();
|
~ProjectTree() override;
|
||||||
|
|
||||||
static ProjectTree *instance();
|
static ProjectTree *instance();
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class ProjectWindow : public Utils::FancyMainWindow
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ProjectWindow();
|
ProjectWindow();
|
||||||
~ProjectWindow();
|
~ProjectWindow() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ProjectWindowPrivate *d;
|
ProjectWindowPrivate *d;
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ class PROJECTEXPLORER_EXPORT ToolChainFactory : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ToolChainFactory();
|
ToolChainFactory();
|
||||||
~ToolChainFactory();
|
~ToolChainFactory() override;
|
||||||
|
|
||||||
static const QList<ToolChainFactory *> allToolChainFactories();
|
static const QList<ToolChainFactory *> allToolChainFactories();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user