void ClangIpcServer::registerUnsavedFilesForEditor(const RegisterUnsavedFilesForEditorMessage &message) { TIME_SCOPE_DURATION("ClangIpcServer::registerUnsavedFilesForEditor"); try { unsavedFiles.createOrUpdate(message.fileContainers()); translationUnits.updateTranslationUnitsWithChangedDependencies(message.fileContainers()); sendDocumentAnnotationsTimer.start(delayedDocumentAnnotationsTimerInterval()); } catch (const ProjectPartDoNotExistException &exception) { client()->projectPartsDoNotExist(ProjectPartsDoNotExistMessage(exception.projectPartIds())); } catch (const std::exception &exception) { qWarning() << "Error in ClangIpcServer::registerUnsavedFilesForEditor:" << exception.what(); } }
void PrintTo(const RegisterUnsavedFilesForEditorMessage &message, ::std::ostream* os) { *os << "RegisterUnsavedFilesForEditorMessage("; for (const FileContainer &fileContainer : message.fileContainers()) PrintTo(fileContainer, os); *os << ")"; }
QDebug operator<<(QDebug debug, const RegisterUnsavedFilesForEditorMessage &message) { debug.nospace() << "RegisterUnsavedFilesForEditorMessage("; for (const FileContainer &fileContainer : message.fileContainers()) debug.nospace() << fileContainer<< ", "; debug.nospace() << ")"; return debug; }