aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/compilerexplorer/api/compiler.h
blob: 5e728ae19ca0dcabddce1236eabf97eaf72e655f (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "config.h"

#include <QFuture>
#include <QMap>
#include <QSet>
#include <QString>

namespace CompilerExplorer::Api {

struct Compiler
{
    QString id;
    QString name;
    QString languageId;
    QString compilerType;
    QString version;
    QString instructionSet;
    QMap<QString, QString> extraFields;
};

using Compilers = QList<Compiler>;

QFuture<Compilers> compilers(const Config &config,
                             const QString &languageId = {},
                             const QSet<QString> &extraFields = {});

} // namespace CompilerExplorer::Api