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:
Nikolai Kosjar
2015-09-15 16:44:08 +02:00
parent 972731d42e
commit 1d9dd67fd3

View File

@@ -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();
}