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

Function loadPodType

gui/cppchecklibrarydata.cpp:298–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static CppcheckLibraryData::PodType loadPodType(const QXmlStreamReader &xmlReader)
299{
300 CppcheckLibraryData::PodType podtype;
301 podtype.name = xmlReader.attributes().value("name").toString();
302 if (podtype.name.isEmpty()) {
303 mandatoryAttibuteMissing(xmlReader, "name");
304 }
305 podtype.stdtype = xmlReader.attributes().value("stdtype").toString();
306 podtype.size = xmlReader.attributes().value("size").toString();
307 podtype.sign = xmlReader.attributes().value("sign").toString();
308 return podtype;
309}
310
311static CppcheckLibraryData::PlatformType loadPlatformType(QXmlStreamReader &xmlReader)
312{

Callers 1

openMethod · 0.85

Calls 4

mandatoryAttibuteMissingFunction · 0.85
isEmptyMethod · 0.80
toStringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected