[PATCH] D26279: [clang-tidy] Handle data() in readability-redundant-string-cstr
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 3 05:27:13 PDT 2016
malcolm.parsons created this revision.
malcolm.parsons added reviewers: etienneb, alexfh, aaron.ballman.
malcolm.parsons added a subscriber: cfe-commits.
std::string::data() and std::string::c_str() are equivalent.
Enhance the readability-redundant-string-cstr check to also handle
calls to data().
https://reviews.llvm.org/D26279
Files:
clang-tidy/readability/RedundantStringCStrCheck.cpp
test/clang-tidy/readability-redundant-string-cstr-msvc.cpp
test/clang-tidy/readability-redundant-string-cstr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26279.76844.patch
Type: text/x-patch
Size: 4962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161103/a979f61a/attachment.bin>
More information about the cfe-commits
mailing list