[clang-tools-extra] [clang-tidy] Add modernize-substr-to-starts-with check (PR #116033)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 07:39:24 PST 2024


================
@@ -31,6 +31,10 @@ class UseStartsEndsWithCheck : public ClangTidyCheck {
   std::optional<TraversalKind> getCheckTraversalKind() const override {
     return TK_IgnoreUnlessSpelledInSource;
   }
+private:
+  void handleSubstrMatch(const ast_matchers::MatchFinder::MatchResult &Result);
+  void handleFindCompareMatch(const ast_matchers::MatchFinder::MatchResult &Result);
+  
----------------
EugeneZelenko wrote:

Excessive newline.

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


More information about the cfe-commits mailing list