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

Method analyzerInfo

lib/checkunusedfunctions.cpp:431–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429{}
430
431std::string CheckUnusedFunctions::analyzerInfo(const Tokenizer &tokenizer) const
432{
433 std::ostringstream ret;
434 for (const FunctionDecl &functionDecl : mFunctionDecl) {
435 ret << " <functiondecl"
436 << " file=\"" << ErrorLogger::toxml(tokenizer.list.getFiles()[functionDecl.fileIndex]) << '\"'
437 << " functionName=\"" << ErrorLogger::toxml(functionDecl.functionName) << '\"'
438 << " lineNumber=\"" << functionDecl.lineNumber << '\"'
439 << " column=\"" << functionDecl.column << '\"'
440 << "/>\n";
441 }
442 for (const std::string &fc : mFunctionCalls) {
443 ret << " <functioncall functionName=\"" << ErrorLogger::toxml(fc) << "\"/>\n";
444 }
445 return ret.str();
446}
447
448namespace {
449 struct Location {

Callers 2

checkInternalMethod · 0.80
checkNormalTokensMethod · 0.80

Calls 1

strMethod · 0.45

Tested by

no test coverage detected