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

Method loadBaseFromXml

lib/ctu.cpp:186–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool CTU::FileInfo::CallBase::loadBaseFromXml(const tinyxml2::XMLElement *xmlElement)
187{
188 bool error = false;
189 callId = readAttrString(xmlElement, ATTR_CALL_ID, &error);
190 callFunctionName = readAttrString(xmlElement, ATTR_CALL_FUNCNAME, &error);
191 callArgNr = readAttrInt(xmlElement, ATTR_CALL_ARGNR, &error);
192 location.fileName = readAttrString(xmlElement, ATTR_LOC_FILENAME, &error);
193 location.lineNumber = readAttrInt(xmlElement, ATTR_LOC_LINENR, &error);
194 location.column = readAttrInt(xmlElement, ATTR_LOC_COLUMN, &error);
195 return !error;
196}
197
198bool CTU::FileInfo::FunctionCall::loadFromXml(const tinyxml2::XMLElement *xmlElement)
199{

Callers

nothing calls this directly

Calls 2

readAttrStringFunction · 0.85
readAttrIntFunction · 0.85

Tested by

no test coverage detected