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

Method sendCommand

plugins/cmake/cmakeserver.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97static QByteArray closeTag() { return QByteArrayLiteral("\n]== \"CMake Server\" ==]\n"); }
98
99void CMakeServer::sendCommand(const QJsonObject& object)
100{
101 Q_ASSERT(isServerAvailable());
102
103 const QByteArray data = openTag() + QJsonDocument(object).toJson(QJsonDocument::Compact) + closeTag();
104 auto len = m_localSocket->write(data);
105// qCDebug(CMAKE) << "writing...\n" << QJsonDocument(object).toJson();
106 Q_ASSERT(len > 0);
107}
108
109void CMakeServer::processOutput()
110{

Callers

nothing calls this directly

Calls 3

openTagFunction · 0.85
closeTagFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected