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

Richard via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 11 10:05:12 PST 2015


LegalizeAdulthood added a subscriber: LegalizeAdulthood.

================
Comment at: test/clang-tidy/misc-string-integer-assignment.cpp:25
@@ +24,3 @@
+int main() {
+  std::string s("foobar");
+
----------------
Use {} initialization perhaps?


http://reviews.llvm.org/D15411





More information about the cfe-commits mailing list