logic: Fixed single header files within indexed paths were not indexed (issue #513)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user