| 923 | } |
| 924 | |
| 925 | DocumentChangeTracker* BackgroundParser::trackerForUrl(const KDevelop::IndexedString& url) const |
| 926 | { |
| 927 | Q_D(const BackgroundParser); |
| 928 | |
| 929 | if (url.isEmpty()) { |
| 930 | // this happens e.g. when setting the final location of a problem that is not |
| 931 | // yet associated with a top ctx. |
| 932 | return nullptr; |
| 933 | } |
| 934 | if (!isValidURL(url)) { |
| 935 | qCWarning(LANGUAGE) << "Tracker requested for invalid URL:" << url.toUrl(); |
| 936 | } |
| 937 | Q_ASSERT(isValidURL(url)); |
| 938 | |
| 939 | QMutexLocker l(&d->m_managedMutex); |
| 940 | return d->m_managed.value(url, nullptr); |
| 941 | } |
| 942 | |
| 943 | void BackgroundParser::documentClosed(IDocument* document) |
| 944 | { |
no test coverage detected