Have scaninc ignore non-existing files
This commit is contained in:
@@ -125,7 +125,12 @@ int main(int argc, char **argv)
|
|||||||
if (!exists && (file.FileType() == SourceFileType::Asm || file.FileType() == SourceFileType::Inc))
|
if (!exists && (file.FileType() == SourceFileType::Asm || file.FileType() == SourceFileType::Inc))
|
||||||
{
|
{
|
||||||
path = include;
|
path = include;
|
||||||
|
if (CanOpenFile(path))
|
||||||
|
exists = true;
|
||||||
}
|
}
|
||||||
|
if (!exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
dependencies_includes.insert(path);
|
dependencies_includes.insert(path);
|
||||||
bool inserted = dependencies.insert(path).second;
|
bool inserted = dependencies.insert(path).second;
|
||||||
if (inserted && exists)
|
if (inserted && exists)
|
||||||
|
|||||||
Reference in New Issue
Block a user