summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-02 13:41:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-02 16:55:36 +0200
commitc898611bd56a2ea090b2eb46f4d7bd4dd57594a7 (patch)
treea0c0a84395a972adaee24260443ed18793f3c1b4 /compilerplugins
parent12f94913307450aad0e48f6ce06aac9f74807e1a (diff)
loplugin:stringviewparam convert methods using compareTo
which converts to compare Change-Id: If03c790ea113a7caedbe89f926b29055c9ec1e76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132455 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/stringviewparam.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringviewparam.cxx b/compilerplugins/clang/stringviewparam.cxx
index f0d09fe333d9..0ca41f2aeb1e 100644
--- a/compilerplugins/clang/stringviewparam.cxx
+++ b/compilerplugins/clang/stringviewparam.cxx
@@ -138,7 +138,7 @@ DeclRefExpr const* relevantCXXMemberCallExpr(CXXMemberCallExpr const* expr)
{
auto const n = i->getName();
if (n == "endsWith" || n == "isEmpty" || n == "startsWith" || n == "subView"
- || n == "indexOf" || n == "lastIndexOf")
+ || n == "indexOf" || n == "lastIndexOf" || n == "compareTo")
{
good = true;
}