diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2025-04-29 09:24:05 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-05-16 16:59:39 +0200 |
| commit | 69a6ea8334605cb22eaf95f75a01c4fa425f91a9 (patch) | |
| tree | 74b3af496b480c6a58f4f70773543c84c573021e /src/qmlcompiler/qqmljslintervisitor.cpp | |
| parent | b203d856b3d4483340af7fa557d6d181f2107715 (diff) | |
qqmljslinter: introduce LinterImportVisitor visitor
Add a visitor that creates warnings about qml and js code, to avoid
having all the warning-related but qqmljsscope-unrelated code in
qqmljsimportvisitor.
Task-number: QTBUG-129307
Change-Id: Icf56979d99855f11c5e72a0c9efbf9ecd629e42e
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljslintervisitor.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljslintervisitor.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljslintervisitor.cpp b/src/qmlcompiler/qqmljslintervisitor.cpp new file mode 100644 index 0000000000..6dc08a7b70 --- /dev/null +++ b/src/qmlcompiler/qqmljslintervisitor.cpp @@ -0,0 +1,19 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#include "qqmljslintervisitor_p.h" + +QT_BEGIN_NAMESPACE + +namespace QQmlJS { +/*! + \internal + \class QQmlJS::LinterVisitor + Extends QQmlJSImportVisitor with extra warnings that are required for linting but unrelated to + QQmlJSImportVisitor actual task that is constructing QQmlJSScopes. One example of such warnings + are purely syntactic checks, or style-checks warnings that don't make sense during compilation. + */ + +} // namespace QQmlJS + +QT_END_NAMESPACE |
