parent
95e2eebd8a
commit
b2fbab18fd
|
@ -570,7 +570,7 @@ static void writeTypeChecks(QXmlStreamWriter &xmlWriter, const CppcheckLibraryDa
|
||||||
xmlWriter.writeEndElement();
|
xmlWriter.writeEndElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void writePlatformType (QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::PlatformType &pt)
|
static void writePlatformType(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::PlatformType &pt)
|
||||||
{
|
{
|
||||||
xmlWriter.writeStartElement("platformtype");
|
xmlWriter.writeStartElement("platformtype");
|
||||||
xmlWriter.writeAttribute("name", pt.name);
|
xmlWriter.writeAttribute("name", pt.name);
|
||||||
|
|
|
@ -202,7 +202,7 @@ void TestCppcheckLibraryData::platformTypeValid()
|
||||||
QCOMPARE(libraryData.platformTypes[1].value, "all");
|
QCOMPARE(libraryData.platformTypes[1].value, "all");
|
||||||
QCOMPARE(libraryData.platformTypes[1].types.size(), 5);
|
QCOMPARE(libraryData.platformTypes[1].types.size(), 5);
|
||||||
QCOMPARE(libraryData.platformTypes[1].types,
|
QCOMPARE(libraryData.platformTypes[1].types,
|
||||||
QStringList({"unsigned", "long", "pointer", "const_ptr", "ptr_ptr"}));
|
QStringList({"unsigned", "long", "pointer", "const_ptr", "ptr_ptr"}));
|
||||||
QCOMPARE(libraryData.platformTypes[1].platforms.isEmpty(), true);
|
QCOMPARE(libraryData.platformTypes[1].platforms.isEmpty(), true);
|
||||||
|
|
||||||
QCOMPARE(libraryData.platformTypes[2].name, "types and platform");
|
QCOMPARE(libraryData.platformTypes[2].name, "types and platform");
|
||||||
|
|
Loading…
Reference in New Issue