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

Method proposedBuildFolder

kdevplatform/project/helper.cpp:215–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215Path KDevelop::proposedBuildFolder(const Path& sourceFolder)
216{
217 Path proposedBuildFolder;
218 if (sourceFolder.path().contains(QLatin1String("/src/"))) {
219 const QString srcBuildPath = sourceFolder.path().replace(QLatin1String("/src/"), QLatin1String("/build/"));
220 Q_ASSERT(!srcBuildPath.isEmpty());
221 if (QDir(srcBuildPath).exists()) {
222 proposedBuildFolder = Path(srcBuildPath);
223 }
224 }
225 if (!proposedBuildFolder.isValid()) {
226 proposedBuildFolder = Path(sourceFolder, QStringLiteral("build"));
227 }
228
229 return proposedBuildFolder;
230}

Callers

nothing calls this directly

Calls 8

existsMethod · 0.80
PathClass · 0.70
QDirClass · 0.50
containsMethod · 0.45
pathMethod · 0.45
replaceMethod · 0.45
isEmptyMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected