data: shortened local symbol names

* removed var name from local symbol names that get stored in the db
This commit is contained in:
malte_langkabel
2016-08-12 09:58:35 +02:00
parent 8776a8e285
commit 279fc7ae82
2 changed files with 3 additions and 4 deletions
@@ -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(
+2 -2
View File
@@ -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>");
}
///////////////////////////////////////////////////////////////////////////////