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

Method mapToBuild

plugins/custommake/makefileresolver/makefileresolver.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206QString MakeFileResolver::mapToBuild(const QString &path) const
207{
208 QString wd = QDir::cleanPath(path);
209 if (m_outOfSource) {
210 if (wd.startsWith(m_source) && !wd.startsWith(m_build)) {
211 //Move the current working-directory out of source, into the build-system
212 wd = QDir::cleanPath(m_build + QLatin1Char('/') + QStringView{wd}.sliced(m_source.length()));
213 }
214 }
215 return wd;
216}
217
218void MakeFileResolver::clearCache()
219{

Callers

nothing calls this directly

Calls 2

cleanPathFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected