MCPcopy Create free account
hub / github.com/KDE/kdevelop / trackerForUrl

Method trackerForUrl

kdevplatform/language/backgroundparser/backgroundparser.cpp:925–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925DocumentChangeTracker* 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
943void BackgroundParser::documentClosed(IDocument* document)
944{

Callers 13

addDocumentChainMethod · 0.80
readContentsMethod · 0.80
highlightDUChainMethod · 0.80
connectTrackerMethod · 0.80
hasHighlightingMethod · 0.80
applyHighlightingMethod · 0.80
aboutToRemoveTextMethod · 0.80
convertMethod · 0.80

Calls 4

isValidURLFunction · 0.85
isEmptyMethod · 0.45
toUrlMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected