aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-07-10 10:04:08 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-07-22 09:39:58 +0200
commit8d0ca38adcb550d556871a5033f2e2ef3b6f83c2 (patch)
tree9435105367ff87b877d863db3c53db973ccac20f /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
parente8a1766c9b1a59ceaa651b0942d15a8422cca114 (diff)
shiboken6: Add platform version to the triplet parsing
Complements 244b5dd5e1869ea85c5b78d27259965f7ca2c7bb. Task-number: PYSIDE-3105 Task-number: PYSIDE-2352 Change-Id: I0cb197a1683b8a4d5a7c7babbfc900180005a723 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/compilersupport.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
index f2518edd7..61935db56 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
+++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
@@ -5,8 +5,8 @@
#define COMPILERSUPPORT_H
#include <QtCore/qbytearraylist.h>
+#include <QtCore/qversionnumber.h>
-QT_FORWARD_DECLARE_CLASS(QVersionNumber)
QT_FORWARD_DECLARE_CLASS(QString)
enum class LanguageLevel {
@@ -63,7 +63,8 @@ void addCompilerArgument(const QString &arg);
Platform platform();
bool setPlatform(const QString &name);
-QByteArray targetTripletForPlatform(Platform p, Architecture a, Compiler c);
+QByteArray targetTripletForPlatform(Platform p, Architecture a, Compiler c,
+ const QVersionNumber &platformVersion = {});
const char *compilerTripletValue(Compiler c);
Architecture architecture();
@@ -86,7 +87,8 @@ 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);
+bool parseTriplet(QStringView name, Architecture *a, Platform *p, Compiler *c,
+ QVersionNumber *version);
} // namespace clang