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

Method getFunctionId

lib/ctu.cpp:58–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56static constexpr char ATTR_VALUE[] = "value";
57
58std::string CTU::getFunctionId(const Tokenizer &tokenizer, const Function *function)
59{
60 return tokenizer.list.file(function->tokenDef) + ':' + std::to_string(function->tokenDef->linenr()) + ':' + std::to_string(function->tokenDef->column());
61}
62
63CTU::FileInfo::Location::Location(const Tokenizer &tokenizer, const Token *tok)
64 : fileName(tokenizer.list.file(tok))

Callers

nothing calls this directly

Calls 1

columnMethod · 0.80

Tested by

no test coverage detected