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

Function findconfigFile

plugins/custom-definesandincludes/includepathsconverter.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29QString findconfigFile(const QString& projectDir)
30{
31 QDirIterator dirIterator(projectDir + QLatin1String("/.kdev4"));
32 while (dirIterator.hasNext()) {
33 dirIterator.next();
34 if (dirIterator.fileName().endsWith(QLatin1String(".kdev4"))) {
35 return dirIterator.fileInfo().canonicalFilePath();
36 }
37 }
38 return {};
39}
40
41QString findProject(const QString& subdirectory)
42{

Callers 1

mainFunction · 0.85

Calls 4

endsWithMethod · 0.80
hasNextMethod · 0.45
nextMethod · 0.45
fileNameMethod · 0.45

Tested by

no test coverage detected