data: Macro handling

Macros have now edges from Files where they are usesd
This commit is contained in:
Andreas Stallinger
2015-09-28 15:25:52 +02:00
parent dd4d74a1d9
commit e3696df5e1
19 changed files with 272 additions and 69 deletions
+11
View File
@@ -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(