summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-12 23:31:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-15 17:16:59 +0100
commit87b4bf1ea44235ca64ec7b2b2ba41b91da6ed384 (patch)
treea55ef2a0d1069c99efa7d5b23af3e343e99c170e /compilerplugins
parentf9c6a153c95c4acc6ba02e660c6ca51166b4c79a (diff)
Extend loplugin:stringviewparen: subView
Change-Id: Iee4833b148a5e17e09f84bdfbc8692aa5a956618 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105777 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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 a8df3c5f128d..c0c720f06df5 100644
--- a/compilerplugins/clang/stringviewparam.cxx
+++ b/compilerplugins/clang/stringviewparam.cxx
@@ -131,7 +131,7 @@ DeclRefExpr const* relevantCXXMemberCallExpr(CXXMemberCallExpr const* expr)
else if (auto const i = d->getIdentifier())
{
auto const n = i->getName();
- if (n == "isEmpty")
+ if (n == "isEmpty" || n == "subView")
{
good = true;
}