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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user