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

Function currentBuildDirIndex

plugins/cmake/cmakeutils.cpp:391–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391int currentBuildDirIndex( KDevelop::IProject* project )
392{
393 KConfigGroup baseGrp = baseGroup(project);
394
395 if ( baseGrp.hasKey( Config::buildDirOverrideIndexKey ) )
396 return baseGrp.readEntry<int>( Config::buildDirOverrideIndexKey, -1 );
397
398 else if (baseGrp.hasKey(Config::buildDirIndexKey()))
399 return baseGrp.readEntry<int>( Config::buildDirIndexKey(), -1 );
400 else
401 return baseGrp.readEntry<int>(Config::globalBuildDirIndexKey(), -1); // backwards compatibility
402}
403
404void setCurrentBuildDirIndex( KDevelop::IProject* project, int buildDirIndex )
405{

Callers 7

startMethod · 0.85
readBuildDirParameterFunction · 0.85
writeBuildDirParameterFunction · 0.85
initBuildDirConfigFunction · 0.85
removeBuildDirConfigFunction · 0.85
resetMethod · 0.85
applyMethod · 0.85

Calls 4

baseGroupFunction · 0.85
buildDirIndexKeyFunction · 0.85
globalBuildDirIndexKeyFunction · 0.85
hasKeyMethod · 0.45

Tested by

no test coverage detected