Clang: Return zero as time stamp if file does not exists

Change-Id: I738abd4c5c12a1f63dd8ddae7f8bbba468d5855a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-24 15:46:03 +02:00
parent 4e5e4899d5
commit c9f5a9d410

View File

@@ -55,7 +55,10 @@ long long FileSystem::lastModified(FilePathId filePathId) const
fileInfo.refresh();
if (fileInfo.exists())
return fileInfo.lastModified().toMSecsSinceEpoch() / 1000;
return 0;
}
} // namespace ClangBackEnd