Clang: Call updateTranslationUnit for reloaded files

If a file is reloaded it should update every translation unit.

Change-Id: Ib61d933e95fcd9fe4d32363ddc06f5edcca55e35
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-09-30 14:08:03 +02:00
parent 26c0d6ab92
commit c5941f9fec
3 changed files with 8 additions and 2 deletions

View File

@@ -466,7 +466,12 @@ void IpcCommunicator::updateTranslationUnitIfNotCurrentDocument(Core::IDocument
{
QTC_ASSERT(document, return);
if (Core::EditorManager::currentDocument() != document)
updateTranslationUnitFromCppEditorDocument(document->filePath().toString());
updateTranslationUnit(document);
}
void IpcCommunicator::updateTranslationUnit(Core::IDocument *document)
{
updateTranslationUnitFromCppEditorDocument(document->filePath().toString());
}
void IpcCommunicator::updateUnsavedFile(Core::IDocument *document)