[clang] [alpha.webkit.UncountedCallArgsChecker] Ignore calls to WTF's container methods (PR #82156)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 19 16:24:05 PST 2024


================
@@ -25,6 +25,11 @@ using namespace ento;
 
 namespace {
 
+bool stringEndsWith(const std::string &str, const std::string &suffix) {
+  auto index = str.rfind(suffix);
+  return index != std::string::npos && str.size() - suffix.size() == index;
+}
----------------
rniwa wrote:

Oh, didn't realize we had that. I'll add a FIXME for making `safeGetName` return a `StringRef`.

https://github.com/llvm/llvm-project/pull/82156


More information about the cfe-commits mailing list