MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / getProjectSourceFiles

Method getProjectSourceFiles

context/ContextManager.cpp:61–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61QStringList ContextManager::getProjectSourceFiles(ProjectExplorer::Project *project) const
62{
63 QStringList sourceFiles;
64 if (!project)
65 return sourceFiles;
66
67 auto projectNode = project->rootProjectNode();
68 if (!projectNode)
69 return sourceFiles;
70
71 projectNode->forEachNode(
72 [&sourceFiles, this](ProjectExplorer::FileNode *fileNode) {
73 if (fileNode /*&& shouldProcessFile(fileNode->filePath().toString())*/) {
74 sourceFiles.append(fileNode->filePath().toUrlishString());
75 }
76 },
77 nullptr);
78
79 return sourceFiles;
80}
81
82ContentFile ContextManager::createContentFile(const QString &filePath) const
83{

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected