Skip to content

Commit

Permalink
Fixed #782, supplemental
Browse files Browse the repository at this point in the history
  • Loading branch information
jipclaassens authored and MaartenHilferink committed Oct 2, 2024
1 parent bd04989 commit ea9caeb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 6 additions & 4 deletions clc/dll/src/Subset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,17 @@ struct CollectWithAttrOperator : public BinaryOperator
{
if (m_CollectMode == collect_mode::org_rel)
reportF(SeverityTypeID::ST_Warning, "%s: image of org_rel is %s, which is incompatible with the domain of attribute %s, which is %s"
, GetGroup()->GetNameStr()
, subDataItem->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullName().c_str()
, GetGroup()->GetNameStr()
, sourceDomain->GetFullCfgName().c_str()
, subDataItem->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullCfgName().c_str()
);
else
reportF(SeverityTypeID::ST_Warning, "%s: domain of condition is %s, which is incompatible with the domain of attribute %s, which is %s"
, GetGroup()->GetNameStr()
, sourceDomain->GetFullCfgName().c_str()
, subDataItem->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullCfgName().c_str()
);
continue;
}
Expand Down
13 changes: 12 additions & 1 deletion tic/dll/src/TreeItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,18 @@ struct TreeItem : Actor, ItemTree


TIC_CALL const TreeItem* GetBackRef() const;

SharedStr GetFullCfgName() const
{
auto cfgItem = this;
while (cfgItem->IsCacheRoot())
{
auto backItem = cfgItem->GetBackRef();
if (!backItem)
break;
cfgItem = backItem;
}
return cfgItem->GetFullName();
}
//private: // TODO G8: encapsulate

TokenID m_ID;
Expand Down

0 comments on commit ea9caeb

Please sign in to comment.