forked from qt-creator/qt-creator
Clang: Do not re-add files after QFileSystemWatcher::fileChanged()
It is pointless and will generate error messages like
clangbackend.stderr: QInotifyFileSystemWatcherEngine::addPaths:
inotify_add_watch failed: No such file or directory
for renamed or removed files.
Change-Id: I3ea14cc5f38526960d52ae7b41a270ef620a929c
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -69,7 +69,6 @@ void ClangFileSystemWatcher::addFiles(const QSet<Utf8String> &filePaths)
|
||||
void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const QString &filePath)
|
||||
{
|
||||
translationUnits.updateTranslationUnitsWithChangedDependency(filePath);
|
||||
watcher.addPath(filePath);
|
||||
|
||||
emit fileChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user