[clang-tools-extra] [clang-tidy] Enhance modernize-use-starts-ends-with to handle substr patterns (PR #116033)
Nicolas van Kempen via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 08:18:45 PST 2024
================
@@ -243,8 +243,9 @@ Changes in existing checks
``NULL``/``__null`` (but not ``0``) when used with a templated type.
- Improved :doc:`modernize-use-starts-ends-with
- <clang-tidy/checks/modernize/use-starts-ends-with>` check to handle two cases
- that can be replaced with ``ends_with``
+ <clang-tidy/checks/modernize/use-starts-ends-with>` check to handle two new
+ cases from ``rfind`` and ``compare`` to ``ends_with``, and one new case from
+ ``substr`` to ``starts_with``.
----------------
nicovank wrote:
Tabs vs spaces.
https://github.com/llvm/llvm-project/pull/116033
More information about the cfe-commits
mailing list