Clang: Improve diagnostic update timer

Start the timer after a translation unit change and stop after every
diagnostic is sent. We should decrease the interval as we are
sending the diagnostics because otherwise the sending is delayed to much.
If the file watcher is emitting a file change we should only react
to changes of files which have no editor open.

Change-Id: I5431b4bf6b4c0b825bfc74bb9c697bb2d198fa26
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-10-13 12:54:22 +02:00
parent 08ca3eb480
commit 0eaa9f668c
7 changed files with 64 additions and 10 deletions

View File

@@ -90,7 +90,7 @@ void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const
{
translationUnits.updateTranslationUnitsWithChangedDependency(filePath);
emit fileChanged();
emit fileChanged(filePath);
}
} // namespace ClangBackEnd