forked from qt-creator/qt-creator
ProjectExplorer: Consolidate *ToolChain::target() implementations
All ToolChains had an Abi member one way or the other, so have one in the base class and drop all others. Change-Id: Ic4ed47b77f51c2c53d5692c66e6103c6bb23277e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -307,12 +307,12 @@ public:
|
||||
m_toolChains.append(this);
|
||||
setLanguage(Constants::CXX_LANGUAGE_ID);
|
||||
setTypeDisplayName("Test Tool Chain");
|
||||
setTargetAbiNoSignal(Abi::hostAbi());
|
||||
}
|
||||
|
||||
static QList<TTC *> toolChains() { return m_toolChains; }
|
||||
static bool hasToolChains() { return !m_toolChains.isEmpty(); }
|
||||
|
||||
Abi targetAbi() const override { return Abi::hostAbi(); }
|
||||
bool isValid() const override { return m_valid; }
|
||||
MacroInspectionRunner createMacroInspectionRunner() const override { return MacroInspectionRunner(); }
|
||||
Macros predefinedMacros(const QStringList &cxxflags) const override { Q_UNUSED(cxxflags) return Macros(); }
|
||||
|
||||
Reference in New Issue
Block a user