Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmldom_utils_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QQMLDOM_UTILS_P_H
6#define QQMLDOM_UTILS_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qglobal.h>
20#include "qqmldom_fwd_p.h"
22#include <QtQml/private/qqmljssourcelocation_p.h>
23#include <QtCore/qstringlist.h>
24#include <QtCore/qloggingcategory.h>
25#include <QtCore/qcborvalue.h>
26
28
29Q_DECLARE_LOGGING_CATEGORY(QQmlJSDomImporting);
30
31template<class... Ts>
32struct qOverloadedVisitor : Ts...
33{
34 using Ts::operator()...;
35};
36template<class... Ts>
38
39namespace QQmlJS {
40namespace Dom {
41
42QString fileLocationRegionName(FileLocationRegion region);
43FileLocationRegion fileLocationRegionValue(QStringView region);
44
45QCborValue sourceLocationToQCborValue(SourceLocation loc);
46
47} // namespace Dom
48}; // namespace QQmlJS
49
50QT_END_NAMESPACE
51
52#endif // QQMLDOM_UTILS_P_H
QString fileLocationRegionName(FileLocationRegion region)
FileLocationRegion fileLocationRegionValue(QStringView region)
static QMetaEnum regionEnum
QCborValue sourceLocationToQCborValue(QQmlJS::SourceLocation loc)
qOverloadedVisitor(Ts...) -> qOverloadedVisitor< Ts... >