[all-commits] [llvm/llvm-project] 7cfdff: [clang-tidy] Add abseil-string-find-str-contains c...

tdl-g via All-commits all-commits at lists.llvm.org
Thu May 28 09:38:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cfdff7b4a6704b8ef2a1b594e1ec19d2d89f385
      https://github.com/llvm/llvm-project/commit/7cfdff7b4a6704b8ef2a1b594e1ec19d2d89f385
  Author: Tom Lokovic <tdl at google.com>
  Date:   2020-05-28 (Thu, 28 May 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
    M clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
    A clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.cpp
    A clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-str-contains.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/abseil-string-find-str-contains.cpp

  Log Message:
  -----------
  [clang-tidy] Add abseil-string-find-str-contains checker.

Summary: This adds a checker which suggests replacing string.find(...) == npos with absl::StrContains.

Reviewers: alexfh, hokein, aaron.ballman, njames93, ymandel

Reviewed By: ymandel

Subscribers: ymandel, Eugene.Zelenko, xazax.hun, mgorny, Charusso, phosek, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D80023




More information about the All-commits mailing list