summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-06-16 16:33:11 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2022-08-04 17:30:31 +0200
commitec9e828d13008d8df26cf8e5fa276b09ee188a26 (patch)
tree3454e954ef560b889eea36e12a6d0f5c5da79c00 /scripts
parent1681cbd41004fcdab07e33c1989062d5e2973482 (diff)
downloadqtqa-ec9e828d13008d8df26cf8e5fa276b09ee188a26.tar.gz
Ignore qSwap() being replaced by std::swap() or qt_pointer_swap()
Change-Id: I0eaab197057c213f58aa3a873baf27b1bd42803a Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/api-review/resetboring.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/api-review/resetboring.py b/scripts/api-review/resetboring.py
index 46fe9c0..2803332 100755
--- a/scripts/api-review/resetboring.py
+++ b/scripts/api-review/resetboring.py
@@ -618,6 +618,7 @@ class Selector(object): # Select interesting changes, discard boring.
('Q_DECL_ALIGN', 'alignas'),
('QVector', 'QList'),
('QLatin1String', 'QLatin1StringView'),
+ ('qSwap', 'qt_pointer_swap'),
):
def test(words, k=pair[1]):
return k in words
@@ -775,6 +776,7 @@ class Selector(object): # Select interesting changes, discard boring.
(('Q_FOREVER',), ('for', '(', ';', ';', ')')),
(('Q_DECL_EQ_DELETE', ';'), ('=', 'delete', ';')),
(('qMove',), ('std', '::', 'move')),
+ (('qSwap',), ('std', '::', 'swap')),
(('Q_REQUIRED_RESULT',), ('[[', 'nodiscard', ']]')),
# Needs to happen before handling of Q_DECL_NOEXCEPT
# (as both replace "noexcept"):