summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmloscilloscope
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-10-05 07:43:51 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-10-05 14:59:30 +0200
commit1a85163e1538e8a8e60c884bb21a5084d6170759 (patch)
treef06ced3698895d8f59458b039e5e754427fe0b89 /examples/datavisualization/qmloscilloscope
parentaffcc0be3f200372ed709f4041dc5079ed2e117a (diff)
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: Ibed02600e225ee63c06d61bcd6187518f650a0a0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples/datavisualization/qmloscilloscope')
0 files changed, 0 insertions, 0 deletions