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:
@@ -103,6 +103,8 @@ std::string Edge::getTypeString() const
|
||||
return "is derived from";
|
||||
case EDGE_CALL:
|
||||
return "calls";
|
||||
case EDGE_TYPEDEF_OF:
|
||||
return "is typedef of";
|
||||
default:
|
||||
LOG_ERROR("TypeString not implemented for edge type.");
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ public:
|
||||
EDGE_PARAMETER_TYPE_OF,
|
||||
EDGE_USAGE,
|
||||
EDGE_CALL,
|
||||
EDGE_INHERITANCE
|
||||
EDGE_INHERITANCE,
|
||||
EDGE_TYPEDEF_OF
|
||||
};
|
||||
|
||||
enum AccessType
|
||||
|
||||
@@ -266,6 +266,8 @@ std::string Node::getTypeString(NodeType type) const
|
||||
return "namespace";
|
||||
case NODE_ENUM:
|
||||
return "enum";
|
||||
case NODE_TYPEDEF:
|
||||
return "typedef";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -22,7 +22,8 @@ public:
|
||||
NODE_FUNCTION,
|
||||
NODE_METHOD,
|
||||
NODE_NAMESPACE,
|
||||
NODE_ENUM
|
||||
NODE_ENUM,
|
||||
NODE_TYPEDEF
|
||||
};
|
||||
|
||||
Node(NodeType type, const std::string& name);
|
||||
|
||||
Reference in New Issue
Block a user