[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
Sun Nov 17 18:16:39 PST 2024
================
@@ -25,6 +25,7 @@ class UseStartsEndsWithCheck : public ClangTidyCheck {
UseStartsEndsWithCheck(StringRef Name, ClangTidyContext *Context);
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
+ bool isNegativeComparison(const Expr* ComparisonExpr);
----------------
nicovank wrote:
Function should be static in `.cpp` file at top of file.
```suggestion
```
https://github.com/llvm/llvm-project/pull/116033
More information about the cfe-commits
mailing list