Qt Connectivity
Go to file
Marc Mutz 9aa00a81fd Port from container::count() and length() to size()
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: If19e46acd9ceccaa8af43bf02c5ba30f52163108
Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
2022-10-06 13:19:37 +02:00
LICENSES Use SPDX license identifiers 2022-06-10 15:13:12 +02:00
cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 15:42:36 +02:00
coin Fix documentation issues and enable documentation testing in CI 2022-06-28 10:26:45 +02:00
config.tests Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 15:42:36 +02:00
dist Add changes file for Qt 5.15.2 2020-11-03 12:53:33 +00:00
examples Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 15:42:36 +02:00
src Port from container::count() and length() to size() 2022-10-06 13:19:37 +02:00
tests Port from container::count() and length() to size() 2022-10-06 13:19:37 +02:00
.cmake.conf Bump version to 6.5.0 2022-06-13 18:05:18 +03:00
.gitattributes Update the git-archive export options 2013-09-27 17:03:46 +02:00
.gitignore Ignore QtCreator user project files 2021-06-08 19:06:31 +02:00
.tag Update the git-archive export options 2012-09-10 12:57:49 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 15:42:36 +02:00
conanfile.py Use SPDX license identifiers 2022-06-10 15:13:12 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtconnectivity 2022-10-05 06:12:16 +00:00
sync.profile Cleanup sync.profile 2021-09-09 12:30:34 +02:00