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

Method findExecutable

plugins/android/androidruntime.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81QString AndroidRuntime::findExecutable(const QString& executableName) const
82{
83 QStringList rtPaths;
84
85 auto envPaths = getenv(QByteArrayLiteral("PATH")).split(':');
86 std::transform(envPaths.begin(), envPaths.end(), std::back_inserter(rtPaths),
87 [this](QByteArray p) {
88 return pathInHost(Path(QString::fromLocal8Bit(p))).toLocalFile();
89 });
90
91 return QStandardPaths::findExecutable(executableName, rtPaths);
92}
93
94#include "moc_androidruntime.cpp"

Callers

nothing calls this directly

Calls 7

transformFunction · 0.85
toLocalFileMethod · 0.80
PathClass · 0.50
findExecutableFunction · 0.50
splitMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected