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

Function readBuildDirParameter

plugins/cmake/cmakeutils.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57QString readBuildDirParameter(KDevelop::IProject* project, const char* key, const QString& aDefault, int buildDirectory)
58{
59 const int buildDirIndex = buildDirectory<0 ? CMake::currentBuildDirIndex(project) : buildDirectory;
60 if (buildDirIndex >= 0) // NOTE: we return trimmed since we may have written bogus trailing newlines in the past...
61 return buildDirGroup( project, buildDirIndex ).readEntry( key, aDefault ).trimmed();
62 else
63 return aDefault;
64}
65
66void writeBuildDirParameter(KDevelop::IProject* project, const char* key, const QString& value)
67{

Callers 7

buildDirRuntimeFunction · 0.85
currentBuildDirFunction · 0.85
currentBuildTypeFunction · 0.85
currentCMakeExecutableFunction · 0.85
currentInstallDirFunction · 0.85
currentExtraArgumentsFunction · 0.85
currentEnvironmentFunction · 0.85

Calls 3

currentBuildDirIndexFunction · 0.85
buildDirGroupFunction · 0.85
readEntryMethod · 0.80

Tested by

no test coverage detected