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

Function loadSmartPointer

gui/cppchecklibrarydata.cpp:117–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static CppcheckLibraryData::SmartPointer loadSmartPointer(QXmlStreamReader &xmlReader)
118{
119 CppcheckLibraryData::SmartPointer smartPointer;
120 smartPointer.name = xmlReader.attributes().value("class-name").toString();
121 QXmlStreamReader::TokenType type;
122 while ((type = xmlReader.readNext()) != QXmlStreamReader::EndElement ||
123 xmlReader.name().toString() != "smart-pointer") {
124 if (type != QXmlStreamReader::StartElement)
125 continue;
126 const QString elementName = xmlReader.name().toString();
127 if (elementName == "unique") {
128 smartPointer.unique = true;
129 } else {
130 unhandledElement(xmlReader);
131 }
132 }
133 return smartPointer;
134}
135
136static CppcheckLibraryData::TypeChecks loadTypeChecks(QXmlStreamReader &xmlReader)
137{

Callers 1

openMethod · 0.85

Calls 4

unhandledElementFunction · 0.85
toStringMethod · 0.45
valueMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected