diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 96d39713d7684826e2758e86da4ac12501321348..e2e14f94fda7a9d615d659f162d433372dd5b51e 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -485,6 +485,15 @@ bool Abi::isValid() const && m_wordWidth != 0; } +bool Abi::isNull() const +{ + return m_architecture == UnknownArchitecture + && m_os == UnknownOS + && m_osFlavor == UnknownFlavor + && m_binaryFormat == UnknownFormat + && m_wordWidth == 0; +} + QString Abi::toString(const Architecture &a) { switch (a) { diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index b9a75cad6cd7265ce071d52ba81e4f3da0078c0f..92b97b71d40b1bebd93136efd66afc22bc532eb4 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -120,6 +120,7 @@ public: bool isCompatibleWith(const Abi &other) const; bool isValid() const; + bool isNull() const; Architecture architecture() const { return m_architecture; } OS os() const { return m_os; }