summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-18 08:46:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-18 10:22:44 +0100
commit6fa1161d3113d43f38acdf9207627659fbc137c8 (patch)
tree0b4e0091101fde23515ec7ab9bb7a05993c40482 /compilerplugins
parent7938cae5178a4ce4093fd6494a058ab879ba303b (diff)
loplugin:stringviewparam: No good reason to exclude operator functions
(at least not in general) Change-Id: I71337b53dc9735e90a37ee532d0a8a08797b518c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106043 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/stringviewparam.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/compilerplugins/clang/stringviewparam.cxx b/compilerplugins/clang/stringviewparam.cxx
index 040f8f63b502..0f5ebfc70a3b 100644
--- a/compilerplugins/clang/stringviewparam.cxx
+++ b/compilerplugins/clang/stringviewparam.cxx
@@ -435,10 +435,6 @@ private:
return false;
}
}
- if (decl->isOverloadedOperator()) // e.g. operator()(const OUString&, const OUString&)
- {
- return false;
- }
if (decl->isFunctionTemplateSpecialization())
{
return false;