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

Method setDebugPath

lib/symboldatabase.cpp:8733–8741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8731}
8732
8733void ValueType::setDebugPath(const Token* tok, SourceLocation ctx, const SourceLocation &local)
8734{
8735 std::string file = ctx.file_name();
8736 if (file.empty())
8737 return;
8738 std::string s = Path::stripDirectoryPart(file) + ":" + std::to_string(ctx.line()) + ": " + ctx.function_name() +
8739 " => " + local.function_name();
8740 debugPath.emplace_back(tok, std::move(s));
8741}
8742
8743ValueType::MatchResult ValueType::matchParameter(const ValueType *call, const ValueType *func)
8744{

Callers 2

setValueTypeMethod · 0.80
parsedeclFunction · 0.80

Calls 4

file_nameMethod · 0.80
function_nameMethod · 0.80
emptyMethod · 0.45
lineMethod · 0.45

Tested by

no test coverage detected