logic: Fixed single header files within indexed paths were not indexed (issue #513)

This commit is contained in:
Eberhard Graether
2017-11-09 14:34:36 +01:00
parent 84da941fa4
commit 78d93e50dd
+11
View File
@@ -25,6 +25,8 @@ FileRegister::FileRegister(
if (!ret) if (!ret)
{ {
for (const FilePath& indexedPath: m_indexedPaths) for (const FilePath& indexedPath: m_indexedPaths)
{
if (indexedPath.isDirectory())
{ {
if (indexedPath.contains(filePath)) if (indexedPath.contains(filePath))
{ {
@@ -32,6 +34,15 @@ FileRegister::FileRegister(
break; break;
} }
} }
else
{
if (indexedPath == filePath)
{
ret = true;
break;
}
}
}
} }
if (ret) if (ret)