| 767 | } |
| 768 | |
| 769 | static void writePlatformType(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::PlatformType &pt) |
| 770 | { |
| 771 | xmlWriter.writeStartElement("platformtype"); |
| 772 | xmlWriter.writeAttribute("name", pt.name); |
| 773 | xmlWriter.writeAttribute("value", pt.value); |
| 774 | for (const QString &type : pt.types) { |
| 775 | xmlWriter.writeStartElement(type); |
| 776 | xmlWriter.writeEndElement(); |
| 777 | } |
| 778 | for (const QString &platform : pt.platforms) { |
| 779 | xmlWriter.writeStartElement("platform"); |
| 780 | if (!platform.isEmpty()) { |
| 781 | xmlWriter.writeAttribute("type", platform); |
| 782 | } |
| 783 | xmlWriter.writeEndElement(); |
| 784 | } |
| 785 | xmlWriter.writeEndElement(); |
| 786 | } |
| 787 | |
| 788 | static void writeReflection(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Reflection &refl) |
| 789 | { |