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

Method CMakeDocumentation

plugins/cmake/cmakedocumentation.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37KDevelop::IDocumentationProvider* CMakeDoc::provider() const { return s_provider; }
38
39CMakeDocumentation::CMakeDocumentation(QObject* parent, const KPluginMetaData& metaData, const QVariantList&)
40 : KDevelop::IPlugin(QStringLiteral("kdevcmakedocumentation"), parent, metaData)
41 , m_index(new CMakeCommandsContents(this))
42 , m_flatIndex(new KDescendantsProxyModel(m_index))
43{
44 m_flatIndex->setSourceModel(m_index);
45 if (CMakeBuilderSettings::self()->cmakeExecutable().isEmpty()) {
46 setErrorDescription(i18n("Unable to find a CMake executable. Is one installed on the system?"));
47 return;
48 }
49
50 CMakeDoc::s_provider=this;
51}
52
53QVector<QString> CMakeDocumentation::names(CMakeDocumentation::Type t) const
54{

Callers

nothing calls this directly

Calls 3

setSourceModelMethod · 0.80
cmakeExecutableMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected