<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61954>61954</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Java text blocks aren't understood by clang-format
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sh-at-cs
</td>
</tr>
</table>
<pre>
Since Java 15, the language has support for multi-line text blocks, e.g.:
```java
String myJson = """
hello
there
""";
```
These aren't understood by clang-format at all, e.g. it would format the snippet above as
```java
String myJson = "" "
hello there "" ";
```
which is nonsense and doesn't even compile.
Tested on clang-format version 16.0.0.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckk1vnDwQxz-NuYxAxrwse-Dw5FntIdf0Cxh7wE6NjTyGNN--gt2kmx6qqtIILM_rb_yXRHbyiD1rnlhzyeSaTIg9mVymXFE2BP3ev1ivEJ7lJqFsmPgfkkFw0k-rnBCMJKB1WUJMMIYI8-qSzZ31CAl_JBhcUN9pT8NiKlj1H-MXxj--Lb_Zq9zk7eolResnmN-fKXhg1QWYEHc7Agw6F27HZDDivdJnUPX0W-3Hht8MEoKM6Jk4JVi9xkgpBA3DO6gdKh9DnGWC3Zz7mBtsgrewOg13974D8nZZMIEcwoYg6R_J4BMNAODAg4Ps0f9HqjdjlQFL4IMn9Duh16AD0g0TN_SgwrxYh8WXdSAl1BD8V_YNI9ngoWwLXvAi032lz9VZZtiXbcdPZcW7KjM9lq3sKn5qhm7sRDuotlPNuUPZ1s2pHbrM9oKLite8Kdu6rqtCNmOpdNuN4tyMatSs5jhL6wrntrkIccos0Yp9W56bOnNyQEeHOIXw-AaHc19Hc8liv-fkwzoRq7mzlOhXlWSTw_7Q7IMK_-bhszW63qS00K5VcWXiOtlk1qFQYWbiure4__IlhldUiYnrMRgxcT0G_xkAAP__TBUDVw">