Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmljsloggingutils.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 QQMLJSLOGGER_H
5#define QQMLJSLOGGER_H
6
7#include <QtCore/qanystringview.h>
8#include <QtQmlCompiler/qtqmlcompilerexports.h>
9
11
12class QQmlJSLoggerPrivate;
13class QQmlJSScope;
14
15namespace QQmlSA {
16class SourceLocation;
17}
18
19namespace QQmlSA {
20
21class Q_QMLCOMPILER_EXPORT LoggerWarningId
22{
23public:
24 constexpr LoggerWarningId(QAnyStringView name) : m_name(name) { }
25
26 QAnyStringView name() const { return m_name; }
27
28private:
29 friend bool operator==(const LoggerWarningId &a, const LoggerWarningId &b)
30 {
31 return a.m_name == b.m_name;
32 }
33
34 friend bool operator!=(const LoggerWarningId &a, const LoggerWarningId &b)
35 {
36 return a.m_name != b.m_name;
37 }
38 const QAnyStringView m_name;
39};
40
41} // namespace QQmlSA
42
43extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRequired;
44extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnresolvedAlias;
45extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAliasCycle;
46extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlImport;
47extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRecursionDepthErrors;
48extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlWith;
49extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlInheritanceCycle;
50extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDeprecated;
51extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSignalParameters;
52extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingType;
53extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnresolvedType;
54extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlIncompatibleType;
55extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingProperty;
56extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRestrictedType;
57extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlPrefixedImportType;
58extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlNonListProperty;
59extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlReadOnlyProperty;
60extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatePropertyBinding;
61extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatedName;
62extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDeferredPropertyId;
63extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnqualified;
64extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnusedImports;
65extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMultilineStrings;
66extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntax;
67extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntaxIdQuotation;
68extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntaxDuplicateIds;
69extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlCompiler;
70extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAttachedPropertyReuse;
71extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlPlugin;
72extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlVarUsedBeforeDeclaration;
73extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlInvalidLintDirective;
74extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUseProperFunction;
75extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAccessSingleton;
76extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlTopLevelComponent;
77extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUncreatableType;
78extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingEnumEntry;
79
81
82#endif // QQMLJSLOGGER_H
\inmodule QtCore
Tracks the types for the QmlCompiler.
\inmodule QtQmlCompiler
QAnyStringView name() const
friend bool operator==(const LoggerWarningId &a, const LoggerWarningId &b)
constexpr LoggerWarningId(QAnyStringView name)
friend bool operator!=(const LoggerWarningId &a, const LoggerWarningId &b)
QQmlSA::LoggerWarningId LoggerWarningId
\inmodule QtQmlCompiler
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint name
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnresolvedAlias
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDeprecated
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlInvalidLintDirective
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnqualified
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnresolvedType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUnusedImports
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlPrefixedImportType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlInheritanceCycle
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlTopLevelComponent
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlNonListProperty
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlWith
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlCompiler
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatedName
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlImport
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMultilineStrings
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDeferredPropertyId
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntax
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlVarUsedBeforeDeclaration
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlReadOnlyProperty
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRestrictedType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRecursionDepthErrors
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAliasCycle
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntaxDuplicateIds
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlIncompatibleType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUseProperFunction
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlPlugin
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlRequired
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingEnumEntry
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlUncreatableType
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAccessSingleton
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSyntaxIdQuotation
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlMissingProperty
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatePropertyBinding
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlSignalParameters
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlAttachedPropertyReuse