[PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

Richard via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 14 12:59:04 PST 2015


LegalizeAdulthood added inline comments.

================
Comment at: test/clang-tidy/misc-string-integer-assignment.cpp:33
@@ +32,3 @@
+  s = 'c';
+  s = (char)6;
+
----------------
What happens if the test code had used `static_cast<char>`?


http://reviews.llvm.org/D15411





More information about the cfe-commits mailing list