diff options
Diffstat (limited to 'compilerplugins/clang/stringviewparam.cxx')
-rw-r--r-- | compilerplugins/clang/stringviewparam.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringviewparam.cxx b/compilerplugins/clang/stringviewparam.cxx index ac33ea7c558c..f0d09fe333d9 100644 --- a/compilerplugins/clang/stringviewparam.cxx +++ b/compilerplugins/clang/stringviewparam.cxx @@ -137,7 +137,8 @@ DeclRefExpr const* relevantCXXMemberCallExpr(CXXMemberCallExpr const* expr) else if (auto const i = d->getIdentifier()) { auto const n = i->getName(); - if (n == "endsWith" || n == "isEmpty" || n == "startsWith" || n == "subView") + if (n == "endsWith" || n == "isEmpty" || n == "startsWith" || n == "subView" + || n == "indexOf" || n == "lastIndexOf") { good = true; } |