data: Macro handling
Macros have now edges from Files where they are usesd
This commit is contained in:
@@ -49,6 +49,8 @@ Edge::EdgeType Edge::intToType(int value)
|
||||
return EDGE_INCLUDE;
|
||||
case 0x8000:
|
||||
return EDGE_AGGREGATION;
|
||||
case 0x10000:
|
||||
return EDGE_MACRO_USAGE;
|
||||
}
|
||||
|
||||
return EDGE_NONE;
|
||||
@@ -214,7 +216,10 @@ std::string Edge::getTypeString(EdgeType type)
|
||||
return "include";
|
||||
case EDGE_AGGREGATION:
|
||||
return "aggregation";
|
||||
case EDGE_MACRO_USAGE:
|
||||
return "macro_use";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -358,6 +363,12 @@ bool Edge::checkType() const
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
case EDGE_MACRO_USAGE:
|
||||
if(!m_to->isType(Node::NODE_MACRO) || !m_from->isType(Node::NODE_FILE))
|
||||
{
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
LOG_ERROR_STREAM(
|
||||
|
||||
Reference in New Issue
Block a user