| 429 | {} |
| 430 | |
| 431 | std::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 | |
| 448 | namespace { |
| 449 | struct Location { |
no test coverage detected