forked from qt-creator/qt-creator
Clang: Add UpdateTranslationUnitsForEditorMessage
If an editor is changing all translation units independent of their project part they must be updated too. So we introduce a new message to update all translation units with the same file path. Change-Id: I70d0ea2bbca9fa880111ff7219573e54f3277026 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -58,9 +58,9 @@ void CppEditorDocumentHandle::setNeedsRefresh(bool needsRefresh)
|
||||
m_needsRefresh = needsRefresh;
|
||||
}
|
||||
|
||||
SendDocumentTracker &CppEditorDocumentHandle::sendTracker(const QString &projectPartId)
|
||||
SendDocumentTracker &CppEditorDocumentHandle::sendTracker()
|
||||
{
|
||||
return m_documentRevisionManagements[projectPartId];
|
||||
return m_sendTracker;
|
||||
}
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "cpptools_global.h"
|
||||
#include "senddocumenttracker.h"
|
||||
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
namespace CppTools {
|
||||
@@ -59,10 +58,10 @@ public:
|
||||
|
||||
virtual void resetProcessor() = 0;
|
||||
|
||||
SendDocumentTracker &sendTracker(const QString &projectPartId);
|
||||
SendDocumentTracker &sendTracker();
|
||||
|
||||
private:
|
||||
QMap<QString, SendDocumentTracker> m_documentRevisionManagements;
|
||||
SendDocumentTracker m_sendTracker;
|
||||
bool m_needsRefresh;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user