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

Method start

plugins/cmake/cmakefileapiimportjob.cpp:59–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void ImportJob::start()
60{
61 const auto* bsm = m_project->buildSystemManager();
62 const auto sourceDirectory = m_project->path();
63 const auto buildDirectory = bsm->buildDirectory(m_project->projectItem());
64
65 auto future = QtConcurrent::run(
66 [sourceDirectory, buildDirectory, invalidateOutdatedData = m_invalidateOutdatedData]() -> CMakeProjectData {
67 const auto replyIndex = findReplyIndexFile(buildDirectory.toLocalFile());
68 if (!replyIndex.isValid() || (invalidateOutdatedData && replyIndex.isOutdated())) {
69 return {};
70 }
71
72 auto ret = parseReplyIndexFile(replyIndex, sourceDirectory, buildDirectory);
73 if (invalidateOutdatedData && ret.isOutdated) {
74 ret.compilationData.isValid = false;
75 }
76 if (!ret.compilationData.isValid) {
77 return ret;
78 }
79
80 ret.testSuites = CMake::importTestSuites(buildDirectory);
81 return ret;
82 });
83 m_futureWatcher.setFuture(future);
84}
85}
86}
87

Callers

nothing calls this directly

Calls 11

findReplyIndexFileFunction · 0.85
parseReplyIndexFileFunction · 0.85
importTestSuitesFunction · 0.85
buildSystemManagerMethod · 0.80
toLocalFileMethod · 0.80
isOutdatedMethod · 0.80
runFunction · 0.50
pathMethod · 0.45
buildDirectoryMethod · 0.45
projectItemMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected