[PATCH] D80023: [clang-tidy] Add abseil-string-find-str-contains checker.
Tom Lokovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 11:25:14 PDT 2020
tdl-g created this revision.
tdl-g added a reviewer: ymandel.
Herald added subscribers: cfe-commits, phosek, Charusso, mgorny.
Herald added a project: clang.
Eugene.Zelenko edited reviewers, added: alexfh, hokein, aaron.ballman, njames93; removed: ymandel.
Eugene.Zelenko added a project: clang-tools-extra.
Eugene.Zelenko retitled this revision from "Add abseil-string-find-str-contains checker." to "[clang-tidy] Add abseil-string-find-str-contains checker.".
Herald added a subscriber: xazax.hun.
This adds a checker which suggests replacing string.find(...) == npos with absl::StrContains.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80023
Files:
clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.cpp
clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-str-contains.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/abseil-string-find-str-contains.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80023.264291.patch
Type: text/x-patch
Size: 61753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200515/6768603c/attachment-0001.bin>
More information about the cfe-commits
mailing list