[PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 15:11:06 PST 2016


alexfh added inline comments.

================
Comment at: test/clang-tidy/readability-redundant-string-init.cpp:69
@@ +68,3 @@
+#define M(x) x
+#define N { std::string s = ""; }
+
----------------
Please add a CHECK-FIXES to ensure the macro definition hasn't changed and that the macro invocations below are intact.


http://reviews.llvm.org/D17586





More information about the cfe-commits mailing list