data: saving typedef to Storage

This change save typedef expressions to the Storage using a node of type Node::NODE_TYPEDEF and an edge of type
Edge::EDGE_TYPEDEF_OF that leads to the original type, with the qualifiers saved as DataType on the edge.
This commit is contained in:
Eberhard Graether
2014-07-14 16:47:40 +02:00
parent b7cbef3772
commit bbe5874a89
6 changed files with 19 additions and 6 deletions
+7 -1
View File
@@ -47,7 +47,13 @@ void Storage::onTypedefParsed(
){
log("typedef", fullName + " -> " + underlyingType.getFullTypeName(), location);
// TODO: save Typedef
Node* node = m_graph.createNodeHierarchy(fullName);
node->setType(Node::NODE_TYPEDEF);
node->setAccess(convertAccessType(access));
addTokenLocation(node, location);
addTypeEdge(node, Edge::EDGE_TYPEDEF_OF, underlyingType);
}
void Storage::onClassParsed(const ParseLocation& location, const std::string& fullName, AccessType access)