22#include <QtQml/private/qqmljsast_p.h>
23#include <QtCore/QCoreApplication>
24#include <QtCore/QString>
25#include <QtCore/QCborArray>
26#include <QtCore/QCborMap>
27#include <QtCore/QLoggingCategory>
28#include <QtQml/private/qqmljsdiagnosticmessage_p.h>
43#define NewErrorGroup(name) QQmlJS::Dom::ErrorGroup(QT_TRANSLATE_NOOP("ErrorGroup", name))
60 const char *m_groupId;
112 template<
typename... T>
142 c = msg1.location.offset - msg2.location.offset;
145 c = msg1.location.startLine - msg2.location.startLine;
148 c = msg1.errorId.compare(msg2.errorId);
151 if (!msg1.errorId.isEmpty())
153 c = msg1.message.compare(msg2.message);
156 c = msg1.file.compare(msg2.file);
159 c = Path::cmp(msg1.path, msg2.path);
162 c = int(msg1.level) - int(msg2.level);
165 c = int(msg1.errorGroups.groups.size() - msg2.errorGroups.groups.size());
168 for (
qsizetype i = 0;
i < msg1.errorGroups.groups.size(); ++
i) {
169 c = msg1.errorGroups.groups[
i].groupId().compare(msg2.errorGroups.groups[
i].groupId());
173 c = msg1.location.length - msg2.location.length;
176 c = msg1.location.startColumn - msg2.location.startColumn;
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
A Sink is a function that accepts a QStringView as input.
convenience macro creating a new ErrorGroup and registering its groupId as translatable string
constexpr ErrorGroup(const char *groupId)
Represents a set of tags grouping a set of related error messages.
QVector< ErrorGroup > groups
static int cmp(const ErrorGroups &g1, const ErrorGroups &g2)
Represents an error message connected to the dom.
static ErrorMessage load(QLatin1String errorId, T... args)
friend int compare(const ErrorMessage &msg1, const ErrorMessage &msg2)
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool operator!=(const Version &v1, const Version &v2)
void silentError(const ErrorMessage &)
Error handler that ignores all errors (excluding fatal ones)
void errorToQDebug(const ErrorMessage &error)
writes an ErrorMessage to QDebug
ErrorLevel errorLevelFromQtMsgType(QtMsgType msgType)
void defaultErrorHandler(const ErrorMessage &error)
Calls the default error handler (by default errorToQDebug)
void setDefaultErrorHandler(const ErrorHandler &h)
Sets the default error handler.
bool operator>(const Version &v1, const Version &v2)
std::function< void(const ErrorMessage &)> ErrorHandler
bool operator>=(const Version &v1, const Version &v2)
bool operator==(const Version &v1, const Version &v2)
bool operator<=(const Version &v1, const Version &v2)
bool operator<(const Version &v1, const Version &v2)
Combined button and popup list for selecting options.
#define Q_DECLARE_TR_FUNCTIONS(context)
DBusConnection const char DBusError * error
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint64 GLenum void * handle
GLenum GLuint GLint level
GLuint GLsizei const GLchar * message
GLfloat GLfloat GLfloat GLfloat h
GLsizei const GLchar *const * path
GLsizei GLenum GLboolean sink
QDebug warning(QAnyStringView fileName, int lineNumber)
static QString dump(const QByteArray &)
QLatin1StringView QLatin1String
static int compare(quint64 a, quint64 b)
static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, qsizetype errorPosition)
char * toString(const MyType &t)
[31]