aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/baremetal
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-07-20 18:14:03 +0200
committerhjk <hjk@qt.io>2023-07-21 06:57:32 +0000
commitdf0a3e2a85ba800b9651d09526bf2f757716c9e4 (patch)
treeac933f64c2944cf349340f50e370d915513307a9 /src/plugins/baremetal
parent0137c7f8b66a8f98d8e111bfff030ebfa2c44b07 (diff)
BareMetal: More inlining of simple functions
Change-Id: I88413413a4db9a599ed673a818fb8947224605ae Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/baremetal')
-rw-r--r--src/plugins/baremetal/iarewtoolchain.cpp7
-rw-r--r--src/plugins/baremetal/sdcctoolchain.cpp15
2 files changed, 3 insertions, 19 deletions
diff --git a/src/plugins/baremetal/iarewtoolchain.cpp b/src/plugins/baremetal/iarewtoolchain.cpp
index 0804aa6136..262516b4b3 100644
--- a/src/plugins/baremetal/iarewtoolchain.cpp
+++ b/src/plugins/baremetal/iarewtoolchain.cpp
@@ -301,7 +301,7 @@ public:
BuiltInHeaderPathsRunner createBuiltInHeaderPathsRunner(const Environment &) const final;
void addToEnvironment(Environment &env) const final;
- QList<OutputLineParser *> createOutputParsers() const final;
+ QList<OutputLineParser *> createOutputParsers() const final { return {new IarParser()}; }
std::unique_ptr<ToolChainConfigWidget> createConfigurationWidget() final;
@@ -389,11 +389,6 @@ void IarToolChain::addToEnvironment(Environment &env) const
env.prependOrSetPath(compilerCommand().parentDir());
}
-QList<Utils::OutputLineParser *> IarToolChain::createOutputParsers() const
-{
- return {new IarParser()};
-}
-
std::unique_ptr<ToolChainConfigWidget> IarToolChain::createConfigurationWidget()
{
return std::make_unique<IarToolChainConfigWidget>(this);
diff --git a/src/plugins/baremetal/sdcctoolchain.cpp b/src/plugins/baremetal/sdcctoolchain.cpp
index 48a2257ec6..e57dd9fafe 100644
--- a/src/plugins/baremetal/sdcctoolchain.cpp
+++ b/src/plugins/baremetal/sdcctoolchain.cpp
@@ -216,13 +216,13 @@ public:
BuiltInHeaderPathsRunner createBuiltInHeaderPathsRunner(const Environment &) const final;
void addToEnvironment(Environment &env) const final;
- QList<OutputLineParser *> createOutputParsers() const final;
+ QList<OutputLineParser *> createOutputParsers() const final { return {new SdccParser}; }
std::unique_ptr<ToolChainConfigWidget> createConfigurationWidget() final;
bool operator==(const ToolChain &other) const final;
- FilePath makeCommand(const Environment &env) const final;
+ FilePath makeCommand(const Environment &) const final { return {}; }
private:
friend class SdccToolChainFactory;
@@ -283,11 +283,6 @@ void SdccToolChain::addToEnvironment(Environment &env) const
env.prependOrSetPath(compilerCommand().parentDir());
}
-QList<Utils::OutputLineParser *> SdccToolChain::createOutputParsers() const
-{
- return {new SdccParser};
-}
-
std::unique_ptr<ToolChainConfigWidget> SdccToolChain::createConfigurationWidget()
{
return std::make_unique<SdccToolChainConfigWidget>(this);
@@ -303,12 +298,6 @@ bool SdccToolChain::operator==(const ToolChain &other) const
&& targetAbi() == customTc->targetAbi();
}
-FilePath SdccToolChain::makeCommand(const Environment &env) const
-{
- Q_UNUSED(env)
- return {};
-}
-
// SdccToolChainFactory
SdccToolChainFactory::SdccToolChainFactory()