[all-commits] [llvm/llvm-project] e4f9b5: [clang-tidy] Include std::basic_string_view in rea...
Chris Kennelly via All-commits
all-commits at lists.llvm.org
Fri Nov 20 07:06:59 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e4f9b5d442a260dd78b3de581cec1e90567a2aac
https://github.com/llvm/llvm-project/commit/e4f9b5d442a260dd78b3de581cec1e90567a2aac
Author: Chris Kennelly <ckennelly at ckennelly.com>
Date: 2020-11-20 (Fri, 20 Nov 2020)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantStringInitCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst
M clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-init.cpp
Log Message:
-----------
[clang-tidy] Include std::basic_string_view in readability-redundant-string-init.
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).
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D91009
More information about the All-commits
mailing list