qtdeclarative/tests/auto/qml/qmldiskcache
Marc Mutz 958cd3ee10 Port from container::count() and length() to size()
This is a semantic patch using ClangTidyTransformator as in
qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8:

  auto QtContainerClass = anyOf(
      expr(hasType(cxxRecordDecl(isSameOrDerivedFrom(hasAnyName(classes))))).bind(o),
      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: Idb1f75dfe2323bd1d9e8b4d58d54f1b4b80c7ed7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-10-07 23:38:48 +02:00
..
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
dummy_imports.qml Rename android_dummy_imports.qml to dummy_imports.qml 2022-03-05 15:23:48 +00:00
importmodule.qml Add support for disk caching of ES modules 2018-08-17 11:06:16 +00:00
module.mjs Add support for disk caching of ES modules 2018-08-17 11:06:16 +00:00
test.qml Enable disk cache for files coming from resources 2016-08-12 16:54:38 +00:00
tst_qmldiskcache.cpp Port from container::count() and length() to size() 2022-10-07 23:38:48 +02:00