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

Function writeReflection

gui/cppchecklibrarydata.cpp:788–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788static void writeReflection(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Reflection &refl)
789{
790 xmlWriter.writeStartElement("reflection");
791 for (const CppcheckLibraryData::Reflection::Call &call : refl.calls) {
792 xmlWriter.writeStartElement("call");
793 xmlWriter.writeAttribute("arg", QString("%1").arg(call.arg));
794 xmlWriter.writeCharacters(call.name);
795 xmlWriter.writeEndElement();
796 }
797 xmlWriter.writeEndElement();
798}
799
800static void writeMarkup(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData::Markup &mup)
801{

Callers 1

toStringMethod · 0.85

Calls 1

QStringClass · 0.70

Tested by

no test coverage detected