astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2021-01-30 17:52:41 +01:00
parent 95e2eebd8a
commit b2fbab18fd
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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");