| 1 | // Copyright (C) 2024 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef QDSLINTPLUGIN_H |
| 5 | #define QDSLINTPLUGIN_H |
| 6 | |
| 7 | #include <QtCore/qplugin.h> |
| 8 | |
| 9 | #include <QtQmlCompiler/qqmlsa.h> |
| 10 | #include "qqmlsaconstants.h" |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | class QmlLintQdsPlugin : public QObject, public QQmlSA::LintPlugin |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | Q_PLUGIN_METADATA(IID QmlLintPluginInterface_iid FILE "plugin.json") |
| 18 | Q_INTERFACES(QQmlSA::LintPlugin) |
| 19 | |
| 20 | public: |
| 21 | void registerPasses(QQmlSA::PassManager *manager, const QQmlSA::Element &rootElement) override; |
| 22 | }; |
| 23 | |
| 24 | QT_END_NAMESPACE |
| 25 | |
| 26 | #endif // QDSLINTPLUGIN_H |
| 27 |
