CmdUDAs: Do not identify tags and dependencies as orphan UDAs

This commit is contained in:
Tomas Babej
2021-10-16 10:10:14 -04:00
parent fd549c764b
commit 793b23411a

View File

@@ -35,6 +35,7 @@
#include <format.h>
#include <shared.h>
#include <util.h>
#include <Task.h>
////////////////////////////////////////////////////////////////////////////////
CmdUDAs::CmdUDAs ()
@@ -134,7 +135,9 @@ int CmdUDAs::execute (std::string& output)
for (auto& i : filtered)
{
for (auto& att : i.data)
if (att.first.substr (0, 11) != "annotation_" &&
if (! Task::isAnnotationAttr (att.first) &&
! Task::isTagAttr (att.first) &&
! Task::isDepAttr (att.first) &&
Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ())
orphans[att.first]++;
}