Nim: Finalize toolchain related classes

Change-Id: Ic4fdcdad0f3f886efbf673d0cb4c165cece21a8f
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2017-01-30 10:19:19 +01:00
parent 1e827206f3
commit cccfcfff2f
2 changed files with 22 additions and 22 deletions

View File

@@ -40,23 +40,23 @@ public:
ProjectExplorer::Abi targetAbi() const override; ProjectExplorer::Abi targetAbi() const override;
bool isValid() const override; bool isValid() const override;
QByteArray predefinedMacros(const QStringList &flags) const override; QByteArray predefinedMacros(const QStringList &flags) const final;
CompilerFlags compilerFlags(const QStringList &flags) const; CompilerFlags compilerFlags(const QStringList &flags) const final;
ProjectExplorer::WarningFlags warningFlags(const QStringList &flags) const; ProjectExplorer::WarningFlags warningFlags(const QStringList &flags) const final;
QList<ProjectExplorer::HeaderPath> systemHeaderPaths(const QStringList &flags, QList<ProjectExplorer::HeaderPath> systemHeaderPaths(const QStringList &flags,
const Utils::FileName &sysRoot) const override; const Utils::FileName &sysRoot) const final;
void addToEnvironment(Utils::Environment &env) const override; void addToEnvironment(Utils::Environment &env) const final;
QString makeCommand(const Utils::Environment &env) const override; QString makeCommand(const Utils::Environment &env) const final;
Utils::FileName compilerCommand() const override; Utils::FileName compilerCommand() const final;
QString compilerVersion() const; QString compilerVersion() const;
void setCompilerCommand(const Utils::FileName &compilerCommand); void setCompilerCommand(const Utils::FileName &compilerCommand);
ProjectExplorer::IOutputParser *outputParser() const override; ProjectExplorer::IOutputParser *outputParser() const final;
ProjectExplorer::ToolChainConfigWidget *configurationWidget() override; ProjectExplorer::ToolChainConfigWidget *configurationWidget() final;
ProjectExplorer::ToolChain *clone() const override; ProjectExplorer::ToolChain *clone() const final;
QVariantMap toMap() const override; QVariantMap toMap() const final;
bool fromMap(const QVariantMap &data) override; bool fromMap(const QVariantMap &data) final;
static bool parseVersion(const Utils::FileName &path, std::tuple<int, int, int> &version); static bool parseVersion(const Utils::FileName &path, std::tuple<int, int, int> &version);

View File

@@ -41,12 +41,12 @@ class NimToolChainFactory : public ProjectExplorer::ToolChainFactory
public: public:
NimToolChainFactory(); NimToolChainFactory();
bool canCreate() override; bool canCreate() final;
ProjectExplorer::ToolChain *create(Core::Id l) override; ProjectExplorer::ToolChain *create(Core::Id l) final;
bool canRestore(const QVariantMap &data) override; bool canRestore(const QVariantMap &data) final;
ProjectExplorer::ToolChain *restore(const QVariantMap &data) override; ProjectExplorer::ToolChain *restore(const QVariantMap &data) final;
QSet<Core::Id> supportedLanguages() const override; QSet<Core::Id> supportedLanguages() const final;
QList<ProjectExplorer::ToolChain *> autoDetect(const QList<ProjectExplorer::ToolChain *> &alreadyKnown) override; QList<ProjectExplorer::ToolChain *> autoDetect(const QList<ProjectExplorer::ToolChain *> &alreadyKnown) final;
}; };
class NimToolChainConfigWidget : public ProjectExplorer::ToolChainConfigWidget class NimToolChainConfigWidget : public ProjectExplorer::ToolChainConfigWidget
@@ -57,10 +57,10 @@ public:
explicit NimToolChainConfigWidget(NimToolChain *tc); explicit NimToolChainConfigWidget(NimToolChain *tc);
protected: protected:
void applyImpl() override; void applyImpl() final;
void discardImpl() override; void discardImpl() final;
bool isDirtyImpl() const override; bool isDirtyImpl() const final;
void makeReadOnlyImpl() override; void makeReadOnlyImpl() final;
private: private:
void fillUI(); void fillUI();