modernize-raw-string-literal suggests to replace e.g.:
std::string s{ "foo \"" } with std::string s{R"(foo ")" }; std::string s{ ":)\"" } with std::string s{R"lit(:)")lit" };
which are not necessarily improvements.
Maybe it should only suggest replacements, that are not longer than the original.
Fixes PR30964
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)?