diff options
Diffstat (limited to 'tests/auto/qml/qmllint/lintplugin.h')
-rw-r--r-- | tests/auto/qml/qmllint/lintplugin.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/lintplugin.h b/tests/auto/qml/qmllint/lintplugin.h new file mode 100644 index 0000000000..c121657456 --- /dev/null +++ b/tests/auto/qml/qmllint/lintplugin.h @@ -0,0 +1,21 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef LINTPLUGIN_H +#define LINTPLUGIN_H + +#include <QtPlugin> +#include <QtCore/qobject.h> +#include <QtQmlCompiler/qqmlsa.h> + +class LintPlugin : public QObject, public QQmlSA::LintPlugin +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID QmlLintPluginInterface_iid FILE "testPlugin.json") + Q_INTERFACES(QQmlSA::LintPlugin) + +public: + void registerPasses(QQmlSA::PassManager *manager, const QQmlSA::Element &rootElement) override; +}; + +#endif // LINTPLUGIN_H |