| 79 | } |
| 80 | |
| 81 | void 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 | |
| 102 | void ProblemReporterModel::onProblemsChanged() |
| 103 | { |
no test coverage detected