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

Method resolveIncludePath

plugins/custommake/makefileresolver/makefileresolver.cpp:195–204  ·  view source on GitHub ↗

More efficient solution: Only do exactly one call for each directory. During that call, mark all source-files as changed, and make all targets for those files.

Source from the content-addressed store, hash-verified

193
194///More efficient solution: Only do exactly one call for each directory. During that call, mark all source-files as changed, and make all targets for those files.
195PathResolutionResult MakeFileResolver::resolveIncludePath(const QString& file)
196{
197 if (file.isEmpty()) {
198 // for unit tests with temporary files
199 return PathResolutionResult();
200 }
201
202 QFileInfo fi(file);
203 return resolveIncludePath(fi.fileName(), fi.absolutePath());
204}
205
206QString MakeFileResolver::mapToBuild(const QString &path) const
207{

Callers 3

Calls 15

cleanPathFunction · 0.85
toLocalFileMethod · 0.80
existsMethod · 0.80
mergeWithMethod · 0.80
possibleTargetsMethod · 0.80
joinMethod · 0.80
QStringClass · 0.70
CacheEntryClass · 0.70
QFileInfoClass · 0.50
QDirClass · 0.50
IndexedStringClass · 0.50

Tested by 2