diff options
| author | Friedemann Kleint <friedemann.kleint@qt.io> | 2023-05-10 13:50:56 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2025-11-24 12:06:06 +0100 |
| commit | 845630ad239c4b37ff37e49ef5bb969a8946744b (patch) | |
| tree | 5c65f2e270511459d346c14f0ad8d01f5e6e39a0 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h | |
| parent | 3cf2077a1b060bbea3419ccde23c5da6485a2e24 (diff) | |
Move the shiboken-generator source around
THIS COMMIT WAS GENERATED BY A SCRIPT
Task-number: PYSIDE-962
Task-number: PYSIDE-1587
Change-Id: I58b05c3d05606efb6303193f2d7f907a0ab5741b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/compilersupport.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h deleted file mode 100644 index 20958c23e..000000000 --- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 - -#ifndef COMPILERSUPPORT_H -#define COMPILERSUPPORT_H - -#include "triplet.h" - -#include <QtCore/qbytearraylist.h> -#include <QtCore/qversionnumber.h> - -QT_FORWARD_DECLARE_CLASS(QString) - -enum class LanguageLevel : std::uint8_t { - Default, - Cpp11, - Cpp14, - Cpp17, - Cpp20, - Cpp1Z -}; - -namespace clang { -QVersionNumber libClangVersion(); - -QByteArrayList emulatedCompilerOptions(LanguageLevel level); -LanguageLevel emulatedCompilerLanguageLevel(); - -const char *languageLevelOption(LanguageLevel l); -LanguageLevel languageLevelFromOption(const char *); - -QByteArrayList detectVulkan(); - -// The triplet set by options and heuristics and setters -const Triplet &optionsTriplet(); - -bool setArchitecture(QStringView name); -bool setCompiler(QStringView name); -bool setPlatform(QStringView name); -bool setPlatformVersion(QAnyStringView name); - -bool isCrossCompilation(); - -const QString &compilerPath(); -void setCompilerPath(const QString &name); -void addCompilerArgument(const QString &arg); - -QString compilerFromCMake(); - -bool isCrossCompilation(); - -// Are there any options specifying a target -bool hasTargetOption(const QByteArrayList &clangOptions); - -// Unless the platform/architecture/compiler options were set, try to find -// values based on a --target option in clangOptions and the compiler path. -void setHeuristicOptions(const QByteArrayList &clangOptions); - -// Parse a triplet "x86_64-unknown-linux-gnu" (for testing). Note the -// compiler might not be present and defaults to host -bool parseTriplet(QStringView name, Architecture *a, Platform *p, Compiler *c, - QVersionNumber *version); - -} // namespace clang - -#endif // COMPILERSUPPORT_H |
