[PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 29 08:47:55 PDT 2016
etienneb marked an inline comment as done.
etienneb added a comment.
thanks, aaron.ballman at .
================
Comment at: clang-tidy/readability/RedundantStringCStrCheck.cpp:129
@@ +128,3 @@
+ // Detect: 'dst += str.c_str()' -> 'dst += str'
+ // Detect: 's == str.c_str()' -> 's == str'
+ Finder->addMatcher(
----------------
aaron.ballman wrote:
> I think this comment is incorrect, you want assignment, not equality.
copy-paste! Good catch.
http://reviews.llvm.org/D18475
More information about the cfe-commits
mailing list