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

Method forceFullUpdate

plugins/problemreporter/problemreportermodel.cpp:81–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void ProblemReporterModel::forceFullUpdate()
82{
83 Q_ASSERT(thread() == QThread::currentThread());
84
85 QSet<IndexedString> documents = store()->documents()->get();
86 if (showImports())
87 documents += store()->documents()->imports();
88
89 DUChainReadLocker lock(DUChain::lock());
90 for (const IndexedString& document : std::as_const(documents)) {
91 if (document.isEmpty())
92 continue;
93
94 TopDUContext::Features updateType = TopDUContext::ForceUpdate;
95 if (documents.size() == 1)
96 updateType = TopDUContext::ForceUpdateRecursive;
97 DUChain::self()->updateContextForUrl(
98 document, updateType | TopDUContext::VisibleDeclarationsAndContexts);
99 }
100}
101
102void ProblemReporterModel::onProblemsChanged()
103{

Callers 1

setupActionsMethod · 0.45

Calls 7

threadFunction · 0.85
updateContextForUrlMethod · 0.80
getMethod · 0.45
documentsMethod · 0.45
importsMethod · 0.45
isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected