[PATCH] D91015: Extend bugprone-string-constructor-check to std::string_view.

Chris Kennelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 7 13:42:31 PST 2020


ckennelly created this revision.
ckennelly added reviewers: EricWF, ymandel.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
ckennelly requested review of this revision.

This allows for matching the constructors std::string has in common with
std::string_view.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91015

Files:
  clang-tools-extra/clang-tidy/bugprone/StringConstructorCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/StringConstructorCheck.h
  clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
  clang-tools-extra/test/clang-tidy/checkers/bugprone-string-constructor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91015.303672.patch
Type: text/x-patch
Size: 8418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201107/79e09ae4/attachment.bin>


More information about the cfe-commits mailing list