[PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.
Ben Craig via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 5 10:27:45 PDT 2016
bcraig added a subscriber: bcraig.
bcraig added a comment.
Is this checker able to connect a std::string with a pre-declared string literal (i.e. constant propagation)? For example...
const char *bad_chars = "\0\1\2\3";
std::string bad_str = bad_chars;
I've had real code make that mistake before.
http://reviews.llvm.org/D18783
More information about the cfe-commits
mailing list