[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:45:22 PDT 2016

malcolm.parsons added a comment.

In https://reviews.llvm.org/D26279#586641, @aaron.ballman wrote:

> I like the idea, but would point out that `data()` and `c_str()` had different semantics once upon a time.

I'm aware of this, but it doesn't affect whether the call is redundant.


More information about the cfe-commits mailing list