MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / writePlatformType

Function writePlatformType

gui/cppchecklibrarydata.cpp:769–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769static 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
788static void writeReflection(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Reflection &refl)
789{

Callers 1

toStringMethod · 0.85

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected