CTU: Use column in function id

This commit is contained in:
Daniel Marjamäki 2018-12-31 10:18:28 +01:00
parent aa4f61acdf
commit fd8f599802
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static const char ATTR_MY_ARGNAME[] = "my-argname";
std::string CTU::getFunctionId(const Tokenizer *tokenizer, const Function *function) std::string CTU::getFunctionId(const Tokenizer *tokenizer, const Function *function)
{ {
return tokenizer->list.file(function->tokenDef) + ':' + MathLib::toString(function->tokenDef->linenr()); return tokenizer->list.file(function->tokenDef) + ':' + MathLib::toString(function->tokenDef->linenr()) + ':' + MathLib::toString(function->tokenDef->col());
} }
CTU::FileInfo::Location::Location(const Tokenizer *tokenizer, const Token *tok) CTU::FileInfo::Location::Location(const Tokenizer *tokenizer, const Token *tok)