[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 14 14:19:35 PST 2017


alexfh requested changes to this revision.
alexfh added inline comments.
This revision now requires changes to proceed.


================
Comment at: test/clang-tidy/modernize-raw-string-literal.cpp:94
 
+char const *const Concatenated("\"foo\""
+                               "\"bar\"");
----------------
Does this test fail without the patch? Also, should there be a test covering the case where no replacement is made (and the current code issues a warning)?


https://reviews.llvm.org/D28667





More information about the cfe-commits mailing list