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

Method addBuildDir

plugins/meson/mesonconfig.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32static const QString BACKEND = QStringLiteral("Meson Generator Backend");
33
34int MesonConfig::addBuildDir(BuildDir dir)
35{
36 int newIndex = buildDirs.size();
37 dir.canonicalizePaths();
38 qCDebug(KDEV_Meson) << "BuildDirectories::addBuildDir()=" << dir.buildDir;
39 buildDirs.push_back(dir);
40
41 // Make sure m_currentIndex is valid
42 if (currentIndex < 0) {
43 currentIndex = newIndex;
44 }
45
46 return newIndex;
47}
48
49bool MesonConfig::removeBuildDir(int index)
50{

Callers 1

newBuildDirectoryMethod · 0.45

Calls 3

canonicalizePathsMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected