Task: Do not identify tag and dependency attributes as orphans

This commit is contained in:
Tomas Babej
2021-10-16 10:09:51 -04:00
parent 339a4ddb51
commit fd549c764b

View File

@@ -546,9 +546,11 @@ bool Task::is_udaPresent () const
bool Task::is_orphanPresent () const bool Task::is_orphanPresent () const
{ {
for (auto& att : data) for (auto& att : data)
if (att.first.compare (0, 11, "annotation_", 11) != 0) if (! isAnnotationAttr (att.first) &&
if (Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ()) ! isTagAttr (att.first) &&
return true; ! isDepAttr (att.first) &&
Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ())
return true;
return false; return false;
} }