[PATCH] D91009: Include std::basic_string_view in readability-redundant-string-init.
Chris Kennelly via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 11:33:04 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.
std::string_view("") produces a string_view instance that compares
equal to std::string_view(), but requires more complex initialization
(storing the address of the string literal, rather than zeroing).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91009
Files:
clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-init.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91009.303660.patch
Type: text/x-patch
Size: 8216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201107/aa280abb/attachment-0001.bin>
More information about the cfe-commits
mailing list