<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61087>61087</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang-format does not split very long raw string literal
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JVApen
      </td>
    </tr>
</table>

<pre>
    Given the following code and a clang-format file that has a maximum line length:
````
auto veryLong =
 R"raw(aaaaaa...aaaaaaaa)raw";
````
Clang-format does not want to split the raw string literal into smaller chunks.
Expected:
````
auto veryLong =
 R"raw(aaaaaa...a)raw"
      R"raw(aaaaaaa)raw";
````
The actual string in our code does contain several spaces on which splitting could be possible.

I've tried this with a string containing 5000 characters, even put `PenaltyBreakString: 0` in the config file.
Tried updating `RawStringFormats` to contain `raw` or `raw(` and several other variations, I can't seem to get clang-format to split a raw string literal into parts.

Removing the R and making this a regular string does cause it to jump onto multiple lines.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE1v4zYQ_TXUZRCBpiLLPuiQbOpiix4Kd9H7mBpL3FCkQA7tzb8vSNmbbtsAPZQwLJGcj_dm3ghjNKMj6kX7LNqXChNPPvS__PG0kKtOfnjrfzYXcsATwdlb66_GjaD9QIBuAARt0Y0PZx9mZDgbS8ATMkwYAWHGb2ZOM1jjCCy5kSfRPAn5IuST2Mr3XznBxB4uFN5-9W4E0bysx3AUSgW8CrXDsuq6xtsSal9ulGiePwr76a8IB08RnGe4omNgD3Gxhgu9gFeIHDI_a5gCWjAuW8xoLQXQU3KvsV6D_vRtIc00_E903nmsNmX93fA_sf0yEaDmhPZOxjjwKaw9K_S1d4zGQaRLYRkX1BTBO7hORk9rSXjtc7IDnAgWH6M5WbqxX_8_C9VdCDgYGoAnE-FqeAK8J77lya-tlBL0hAE1U4hCfQLKsloSg9jK38ih5bfnQPj6e3EWzRNkUhl9bo727mzGIrAbhi8lbVoGLFDFVh7xujofSq9jdmf_na7Yyly9rQQf7hu1y_us5HsxPE8U4ILBIBvvCtTPoNEJ1TFEojnHHIl_VP53JeGHOlowcPyhgEea_SXbZYbHAmPG1_XA5PkJNCaL4R5u7R6mSGBKyq9pXsDn4HOybBZLZdRiXQ19M-ybPVbUb7Zdt-12cqOqqZdnSaSw1dg07aZV-7bZbRQ2j3vd0m6vK9MrqRrZyM2meZQbVXdd2yk9NM2-lSc6D-JR0ozG1tZe5tqHsTIxJuq3G7nrKosnsrF8TpRydIVymSXbvlShzz4PpzRG8SitiRzfo7BhS_2_D-ta2jxLYPMw_bPEVQq2n5iXmCdSHYQ6jIandKq1n4U65DS3x8MS_FfSLNShgItCHQr4PwMAAP__vlOhJg">