| 287 | } |
| 288 | |
| 289 | bool ModificationRevisionSet::needsUpdate() const |
| 290 | { |
| 291 | QMutexLocker lock(modificationRevisionSetMutex()); |
| 292 | |
| 293 | #ifdef DEBUG_NEEDSUPDATE |
| 294 | Utils::Set set(m_index, &FileModificationSetRepositoryRepresenter::repository()); |
| 295 | Utils::Set::Iterator it = set.iterator(); |
| 296 | while (it) { |
| 297 | const FileModificationPair* data = fileModificationPairRepository().itemFromIndex(*it); |
| 298 | ModificationRevision revision = KDevelop::ModificationRevision::revisionForFile(data->file); |
| 299 | if (revision != data->revision) { |
| 300 | qCDebug(LANGUAGE) << "dependency" << data->file.str() << "has changed, stored stamp:" << data->revision << |
| 301 | "new time:" << revision; |
| 302 | return true; |
| 303 | } |
| 304 | ++it; |
| 305 | } |
| 306 | return false; |
| 307 | #else |
| 308 | return nodeNeedsUpdate(m_index); |
| 309 | #endif |
| 310 | } |
| 311 | |
| 312 | ModificationRevisionSet& ModificationRevisionSet::operator+=(const ModificationRevisionSet& rhs) |
| 313 | { |
nothing calls this directly
no test coverage detected