data: shortened local symbol names
* removed var name from local symbol names that get stored in the db
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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>");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user