blob: 76733ca7a731904709bdff19657f008e3561682b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef LINTPLUGIN_H
#define LINTPLUGIN_H
#include <QtPlugin>
#include <QtCore/qobject.h>
#include <QtQmlCompiler/private/qqmlsa_p.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
|