| 59 | } |
| 60 | |
| 61 | QStringList 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 | |
| 82 | ContentFile ContextManager::createContentFile(const QString &filePath) const |
| 83 | { |