blob: 09642d92bc2fc19a50d30b1f983b5023ef015877 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "projectinfo.h"
#include <QFutureInterface>
namespace CppEditor::Internal {
class ProjectInfoGenerator
{
public:
ProjectInfoGenerator(const QFutureInterface<ProjectInfo::ConstPtr> &futureInterface,
const ProjectExplorer::ProjectUpdateInfo &projectUpdateInfo);
ProjectInfo::ConstPtr generate();
private:
const QVector<ProjectPart::ConstPtr> createProjectParts(
const ProjectExplorer::RawProjectPart &rawProjectPart,
const Utils::FilePath &projectFilePath);
ProjectPart::ConstPtr createProjectPart(const Utils::FilePath &projectFilePath,
const ProjectExplorer::RawProjectPart &rawProjectPart,
const ProjectFiles &projectFiles,
const QString &partName,
Utils::Language language,
Utils::LanguageExtensions languageExtensions);
private:
const QFutureInterface<ProjectInfo::ConstPtr> m_futureInterface;
const ProjectExplorer::ProjectUpdateInfo &m_projectUpdateInfo;
bool m_cToolchainMissing = false;
bool m_cxxToolchainMissing = false;
};
} // namespace CppEditor::Internal
|