diff --git a/src/lib_parser/data/parser/cxx/ASTVisitor.cpp b/src/lib_parser/data/parser/cxx/ASTVisitor.cpp index 8c2d5249..0ce430a2 100644 --- a/src/lib_parser/data/parser/cxx/ASTVisitor.cpp +++ b/src/lib_parser/data/parser/cxx/ASTVisitor.cpp @@ -1161,8 +1161,7 @@ void ASTVisitor::RecordDeclRef( { ParseLocation declLocation = getParseLocation(varDecl->getSourceRange()); std::string name = - declLocation.filePath.fileName() + "::" + - varDecl->getNameAsString() + "<" + + declLocation.filePath.fileName() + "<" + std::to_string(declLocation.startLineNumber) + ":" + std::to_string(declLocation.startColumnNumber) + ">"; m_client->onLocalSymbolParsed( diff --git a/src/test/CxxParserTestSuite.h b/src/test/CxxParserTestSuite.h index 40e49231..26d0c1cf 100644 --- a/src/test/CxxParserTestSuite.h +++ b/src/test/CxxParserTestSuite.h @@ -860,7 +860,7 @@ public: ); TS_ASSERT_EQUALS(client->localSymbols.size(), 1); - TS_ASSERT_EQUALS(client->localSymbols[0], "input.cc::a<1:11>"); + TS_ASSERT_EQUALS(client->localSymbols[0], "input.cc<1:11>"); } void test_cxx_parser_finds_definition_of_local_symbol_in_function_scope() @@ -873,7 +873,7 @@ public: ); TS_ASSERT_EQUALS(client->localSymbols.size(), 1); - TS_ASSERT_EQUALS(client->localSymbols[0], "input.cc::a<3:2>"); + TS_ASSERT_EQUALS(client->localSymbols[0], "input.cc<3:2>"); } ///////////////////////////////////////////////////////////////////////////////