From 8bf380f7d33f39eaa4cb96b38a82ac18e589deef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 2 May 2022 16:36:43 +0200 Subject: add o3tl::matchIgnoreAsciiCase Change-Id: Iad8e1ed256d84808404bf20ed7a16b05b3db5818 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133753 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/stringview.cxx | 4 ++-- compilerplugins/clang/stringviewparam.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/stringview.cxx b/compilerplugins/clang/stringview.cxx index a3eb09faf97d..1be16fb89a4f 100644 --- a/compilerplugins/clang/stringview.cxx +++ b/compilerplugins/clang/stringview.cxx @@ -379,8 +379,8 @@ bool StringView::VisitCXXMemberCallExpr(CXXMemberCallExpr const* expr) if (dc.Function("toInt32") || dc.Function("toUInt32") || dc.Function("toInt64") || dc.Function("toDouble") || dc.Function("equalsAscii") || dc.Function("equalsIgnoreAsciiCase") || dc.Function("compareToIgnoreAsciiCase") - || dc.Function("trim") || dc.Function("startsWith") || dc.Function("endsWith") - || dc.Function("match")) + || dc.Function("matchIgnoreAsciiCase") || dc.Function("trim") + || dc.Function("startsWith") || dc.Function("endsWith") || dc.Function("match")) { handleSubExprThatCouldBeView(expr->getImplicitObjectArgument()); } diff --git a/compilerplugins/clang/stringviewparam.cxx b/compilerplugins/clang/stringviewparam.cxx index dae4b9b1925f..eed439d0adf3 100644 --- a/compilerplugins/clang/stringviewparam.cxx +++ b/compilerplugins/clang/stringviewparam.cxx @@ -141,7 +141,7 @@ DeclRefExpr const* relevantCXXMemberCallExpr(CXXMemberCallExpr const* expr) || n == "indexOf" || n == "lastIndexOf" || n == "compareTo" || n == "match" || n == "trim" || n == "toInt32" || n == "toUInt32" || n == "toInt64" || n == "toDouble" || n == "equalsIgnoreAsciiCase" || n == "compareToIgnoreAsciiCase" || n == "getToken" - || n == "copy" || n == "equalsAscii") + || n == "copy" || n == "equalsAscii" || n == "matchIgnoreAsciiCase") { good = true; } -- cgit