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

Method getCallsMap

lib/ctu.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> CTU::FileInfo::getCallsMap() const
252{
253 std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> ret;
254 for (const CTU::FileInfo::NestedCall &nc : nestedCalls)
255 ret[nc.callId].push_back(&nc);
256 for (const CTU::FileInfo::FunctionCall &fc : functionCalls)
257 ret[fc.callId].push_back(&fc);
258 return ret;
259}
260
261std::list<CTU::FileInfo::UnsafeUsage> CTU::loadUnsafeUsageListFromXml(const tinyxml2::XMLElement *xmlElement)
262{

Callers 3

analyseWholeProgramMethod · 0.80
analyseWholeProgramMethod · 0.80
analyseWholeProgramMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected