data: filename info

* Changed the TokenLocation of TemplateArguments to have at least a valid file name.
* Extended name of anonymous namespace by the containing file's name.
* Adjusted tests to reflect these changes.
This commit is contained in:
malte_langkabel
2015-02-27 16:07:51 +01:00
parent d0c92a6553
commit 5370541a0f
4 changed files with 15 additions and 7 deletions
+4 -1
View File
@@ -310,7 +310,10 @@ Id Storage::onNamespaceParsed(
log("namespace", utility::join(nameHierarchy, "::"), location);
Node* node = addNodeHierarchy(Node::NODE_NAMESPACE, nameHierarchy);
addTokenLocation(node, location);
if (location.isValid())
{
addTokenLocation(node, location);
}
addTokenLocation(node, scopeLocation, true);
return node->getId();