From fd8f599802674d8acd86657b15c0003f60350f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 31 Dec 2018 10:18:28 +0100 Subject: [PATCH] CTU: Use column in function id --- lib/ctu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ctu.cpp b/lib/ctu.cpp index 4d15d26a6..fc6687c2c 100644 --- a/lib/ctu.cpp +++ b/lib/ctu.cpp @@ -41,7 +41,7 @@ static const char ATTR_MY_ARGNAME[] = "my-argname"; 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)