The density of Q_FOREACH uses is moderate here, but too high for this
author, unfamiliar with this code, to tackle in a short amount of
time. But they're concentrated in just a few TUs, so pick a different
strategy:
Mark the whole module with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too). NB: there are none such TUs in this
module.
Created QTBUG-115830 to keep track of this.
Task-number: QTBUG-115830
Change-Id: I68c9394c04af68cab46480153a5601828565461a
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This is a semantic patch using ClangTidyTransformator as in
qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8:
auto QtContainerClass = expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o)
makeRule(cxxMemberCallExpr(on(QtContainerClass),
callee(cxxMethodDecl(hasAnyName({"count", "length"),
parameterCountIs(0))))),
changeTo(cat(access(o, cat("size"), "()"))),
cat("use 'size()' instead of 'count()/length()'"))
a.k.a qt-port-to-std-compatible-api with config Scope: 'Container',
with the extended set of container classes recognized.
Change-Id: Iead0ad46548d86af9677f3bab4e500e6a458f0e7
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Add UI and client side extension for the RESTful Address Book example
Fixes: QTBUG-105199
Pick-to: 6.4
Change-Id: I01c5e2ac44838f01ccbb73d5b6e1d1e578c67618
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.
Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
The tests tst_examples::sgexamples is expecting the examples to be
present on local filesystem, some changes are needed to have this work
on Android.
Pick-to: 6.2 6.3
Task-number: QTBUG-88846
Task-number: QTBUG-103597
Change-Id: Ida1cb185204626908f5f13da8cfec3a55740d22b
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Moving examples from qtdeclarative to qtdoc broke tests that operate
on the example sources. This patch duplicates those tests and the
documentation snippets that serve as test data to reestablish test
coverage.
Task-number: QTBUG-69383
Change-Id: I31fd1729f794081a11844be9c27ed4f9a8a5ce73
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>