aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljscompiler_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-03-28 09:36:19 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-03-30 08:08:11 +0200
commitfdb45a0e2eb5d1963bd2ee9a7f6ebd49f7dfc9ca (patch)
treebd9d9c2158663977947a8dee1b0a0dd647800554 /src/qmlcompiler/qqmljscompiler_p.h
parentd678eb07e58cd8e38c7417690c06bb9aa08d83e8 (diff)
QmlCompiler: Clean up exports
We need to export all the classes used by qmlsc, and we need to use the private export macro for private symbols. Change-Id: I91d59611e864621dc2c49b9383596e706529bd42 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler_p.h')
-rw-r--r--src/qmlcompiler/qqmljscompiler_p.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/qmlcompiler/qqmljscompiler_p.h b/src/qmlcompiler/qqmljscompiler_p.h
index 7d76cb46c2..6639c080f6 100644
--- a/src/qmlcompiler/qqmljscompiler_p.h
+++ b/src/qmlcompiler/qqmljscompiler_p.h
@@ -39,7 +39,7 @@
//
// We mean it.
-#include <qtqmlcompilerexports.h>
+#include <private/qtqmlcompilerexports_p.h>
#include <QtCore/qstring.h>
#include <QtCore/qlist.h>
@@ -57,9 +57,9 @@
QT_BEGIN_NAMESPACE
-Q_QMLCOMPILER_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcAotCompiler);
+Q_QMLCOMPILER_PRIVATE_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcAotCompiler);
-struct Q_QMLCOMPILER_EXPORT QQmlJSCompileError
+struct Q_QMLCOMPILER_PRIVATE_EXPORT QQmlJSCompileError
{
QString message;
void print();
@@ -70,7 +70,7 @@ struct Q_QMLCOMPILER_EXPORT QQmlJSCompileError
const QQmlJS::DiagnosticMessage &diagnostic);
};
-struct Q_QMLCOMPILER_EXPORT QQmlJSAotFunction
+struct Q_QMLCOMPILER_PRIVATE_EXPORT QQmlJSAotFunction
{
QStringList includes;
QStringList argumentTypes;
@@ -78,7 +78,7 @@ struct Q_QMLCOMPILER_EXPORT QQmlJSAotFunction
QString returnType;
};
-class Q_QMLCOMPILER_EXPORT QQmlJSAotCompiler
+class Q_QMLCOMPILER_PRIVATE_EXPORT QQmlJSAotCompiler
{
public:
QQmlJSAotCompiler(QQmlJSImporter *importer, const QString &resourcePath,
@@ -125,25 +125,25 @@ using QQmlJSSaveFunction
= std::function<bool(const QV4::CompiledData::SaveableUnitPointer &,
const QQmlJSAotFunctionMap &, QString *)>;
-bool Q_QMLCOMPILER_EXPORT qCompileQmlFile(const QString &inputFileName,
+bool Q_QMLCOMPILER_PRIVATE_EXPORT qCompileQmlFile(const QString &inputFileName,
QQmlJSSaveFunction saveFunction,
QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error,
bool storeSourceLocation = false,
QV4::Compiler::CodegenWarningInterface *interface =
QV4::Compiler::defaultCodegenWarningInterface(),
const QString *fileContents = nullptr);
-bool Q_QMLCOMPILER_EXPORT qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName,
+bool Q_QMLCOMPILER_PRIVATE_EXPORT qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName,
QQmlJSSaveFunction saveFunction,
QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error,
bool storeSourceLocation = false,
QV4::Compiler::CodegenWarningInterface *interface =
QV4::Compiler::defaultCodegenWarningInterface(),
const QString *fileContents = nullptr);
-bool Q_QMLCOMPILER_EXPORT qCompileJSFile(const QString &inputFileName, const QString &inputFileUrl,
+bool Q_QMLCOMPILER_PRIVATE_EXPORT qCompileJSFile(const QString &inputFileName, const QString &inputFileUrl,
QQmlJSSaveFunction saveFunction,
QQmlJSCompileError *error);
-bool Q_QMLCOMPILER_EXPORT qSaveQmlJSUnitAsCpp(const QString &inputFileName,
+bool Q_QMLCOMPILER_PRIVATE_EXPORT qSaveQmlJSUnitAsCpp(const QString &inputFileName,
const QString &outputFileName,
const QV4::CompiledData::SaveableUnitPointer &unit,
const QQmlJSAotFunctionMap &aotFunctions,