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

Method getenv

plugins/craft/craftruntime.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121QByteArray CraftRuntime::getenv(const QByteArray& varname) const
122{
123 auto it = std::find_if(m_envCache.begin(), m_envCache.end(), [&varname](const EnvironmentVariable& envVar) {
124 return envVar.name == varname;
125 });
126
127 return it != m_envCache.end() ? it->value : QByteArray();
128}
129
130QString CraftRuntime::findExecutable(const QString& executableName) const
131{

Callers 3

testGetenvMethod · 0.45
CMakeBuildDirChooserMethod · 0.45
checkForNeedingConfigureFunction · 0.45

Calls 3

QByteArrayClass · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 1

testGetenvMethod · 0.36