[clang-tools-extra] [clang-tidy] check `std::string_view` and custom string-like classes in `readability-string-compare` (PR #88636)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 07:54:01 PDT 2024


================
@@ -286,6 +286,11 @@ Changes in existing checks
   check by resolving fix-it overlaps in template code by disregarding implicit
   instances.
 
+- Improved :doc:`readability-string-compare
+  <clang-tidy/checks/readability/string-compare>` check to also detect
+  usages of `std::string_view::compare`. Added a `StringLikeClasses` option
----------------
EugeneZelenko wrote:

```suggestion
  usages of ``std::string_view::compare``. Added a `StringLikeClasses` option
```

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


More information about the cfe-commits mailing list