[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:00 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
+ to detect usages of `compare` method in custom string-like classes.
----------------
EugeneZelenko wrote:
```suggestion
to detect usages of ``compare`` method in custom string-like classes.
```
https://github.com/llvm/llvm-project/pull/88636
More information about the cfe-commits
mailing list