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

Function writeContainerRangeItemRecords

gui/cppchecklibrarydata.cpp:541–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541static void writeContainerRangeItemRecords(QXmlStreamWriter &xmlWriter, const QList<CppcheckLibraryData::Container::RangeItemRecordType> &rangeItemRecords)
542{
543 if (rangeItemRecords.isEmpty())
544 return;
545 xmlWriter.writeStartElement("rangeItemRecordType");
546 for (const CppcheckLibraryData::Container::RangeItemRecordType &item : rangeItemRecords) {
547 xmlWriter.writeStartElement("member");
548 xmlWriter.writeAttribute("name", item.name);
549 xmlWriter.writeAttribute("templateParameter", item.templateParameter);
550 xmlWriter.writeEndElement();
551 }
552 xmlWriter.writeEndElement();
553}
554
555static void writeContainer(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Container &container)
556{

Callers 1

writeContainerFunction · 0.85

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected