aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangutils.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-09-27 09:43:04 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-09-29 11:50:52 +0200
commit6ab7d0b384b58c52faf924278f032e796ce42f07 (patch)
treee7b7e633bc3fec406c878a4d3614676ac064f701 /sources/shiboken6/ApiExtractor/clangparser/clangutils.h
parent61589ef35ee2ee7af52359940822a9d5f298a69f (diff)
Replace QPair by std::pair
Pick-to: 6.6 6.5 Change-Id: Ic64a2a2c162c54fbbfb6ddc5004ffe1944bfd37a Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangutils.h')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangutils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangutils.h b/sources/shiboken6/ApiExtractor/clangparser/clangutils.h
index 532807362..4ad21eebe 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangutils.h
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangutils.h
@@ -5,12 +5,12 @@
#define CLANGUTILS_H
#include <clang-c/Index.h>
-#include <QtCore/QPair>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QList>
#include <functional>
+#include <utility>
QT_FORWARD_DECLARE_CLASS(QDebug)
@@ -59,7 +59,7 @@ inline bool operator!=(const SourceLocation &l1, const SourceLocation &l2)
SourceLocation getExpansionLocation(const CXSourceLocation &location);
-using SourceRange =QPair<SourceLocation, SourceLocation>;
+using SourceRange = std::pair<SourceLocation, SourceLocation>;
SourceLocation getCursorLocation(const CXCursor &cursor);
CXString getFileNameFromLocation(const CXSourceLocation &location);
@@ -92,7 +92,7 @@ CXDiagnosticSeverity maxSeverity(const QList<Diagnostic> &ds);
// with each match (level and string). Return begin and end of the list.
using TemplateArgumentHandler = std::function<void (int, QStringView)>;
-QPair<qsizetype, qsizetype>
+std::pair<qsizetype, qsizetype>
parseTemplateArgumentList(const QString &l,
const TemplateArgumentHandler &handler,
qsizetype from = 0);