logic: fixed refreshing bug

* fixed bug where coati didn't recognize file dependencies because each file actually had two different nodes.
This commit is contained in:
malte_langkabel
2017-01-19 13:44:14 +01:00
parent 212c0e71fa
commit 184a1a0319
2 changed files with 8 additions and 2 deletions
@@ -61,10 +61,10 @@ void PreprocessorCallbacks::InclusionDirective(
{
NameHierarchy referencedNameHierarchy;
referencedNameHierarchy.push(std::make_shared<NameElement>(includedFilePath.fileName()));
referencedNameHierarchy.push(std::make_shared<NameElement>(includedFilePath.str()));
NameHierarchy contextNameHierarchy;
contextNameHierarchy.push(std::make_shared<NameElement>(m_currentPath.fileName()));
contextNameHierarchy.push(std::make_shared<NameElement>(m_currentPath.str()));
m_client->recordReference(
REFERENCE_INCLUDE,