forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user