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

Method documentationForDeclaration

kdevplatform/shell/documentationcontroller.cpp:169–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169IDocumentation::Ptr DocumentationController::documentationForDeclaration(Declaration* decl)
170{
171 if (!decl)
172 return {};
173
174 const auto documentationProviders = this->documentationProviders();
175 for (IDocumentationProvider* doc : documentationProviders) {
176 qCDebug(SHELL) << "Documentation provider found:" << doc;
177 auto ret = doc->documentationForDeclaration(decl);
178
179 qCDebug(SHELL) << "Documentation proposed: " << ret.data();
180 if (ret) {
181 return ret;
182 }
183 }
184
185 return {};
186}
187
188IDocumentation::Ptr DocumentationController::documentation(const QUrl& url) const
189{

Callers 2

htmlMethod · 0.45
executeMethod · 0.45

Calls 2

dataMethod · 0.45

Tested by

no test coverage detected