[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 11:56:42 PDT 2016


etienneb marked an inline comment as done.
etienneb added a comment.

I'll to try to make a better way to describe redundant cases (as proposed by sbenza@) with an array.
I like the array based approach, it's lean and clean.

I'll try to make a prototype of the generic overloaded functions matcher and I'll look at the ratio of false-positive.
It may be gated under a configuration to avoid reporting these false-positives.

Afterward, we can take decision of what/how should this be integrated.


http://reviews.llvm.org/D18475





More information about the cfe-commits mailing list