[PATCH] D80023: [clang-tidy] Add abseil-string-find-str-contains checker.

Tom Lokovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 08:06:18 PDT 2020


tdl-g marked 4 inline comments as done.
tdl-g added a comment.

Thanks again, addressed all comments.



================
Comment at: clang-tools-extra/test/clang-tidy/checkers/abseil-string-find-str-contains.cpp:2
+// RUN: %check_clang_tidy %s abseil-string-find-str-contains %t -- \
+// RUN:   -config="{CheckOptions: []}"
+
----------------
tdl-g wrote:
> ymandel wrote:
> > I'm not sure what's standard practice, but consider whether its worth adding another test file that tests the check options. It wouldn't have to be comprehensive like this one, just some basic tests that the options are being honored.
> I'm open to it, but note that two of the three options (IncludeStyle, inherited from TransformerClangTidy) and AbseilStringsMatchHeader, only manifest in the header-inclusion.
> 
> So if I had a separate test it would be easy to confirm that StringLikeClasses was being honored.  But I'm not sure how I'd confirm that IncludeStyle or AbseilStringsMatchHeader are being honored.  Suggestions?
Discussed with ymandel offline, we'll add more option-specific tests when we clean up transformer's options handling.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80023/new/

https://reviews.llvm.org/D80023





More information about the cfe-commits mailing list