<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58336>58336</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: omit redundant escaped newlines (backslashes)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
arbego
</td>
</tr>
</table>
<pre>
When we format this code
#ifndef SOMETHING
#define SOMETHING ((uint32_t)32000U) /*!< Comment line 1*/
#endif /* SOMETHING */ /*!< Comment line 2
Comment line 3
Comment line 4*/
with `clang-format --verbose -style=webkit test.h` we get this output
#ifndef SOMETHING
#define SOMETHING ((uint32_t)32000U) /*!< Comment line 1*/
#endif /* SOMETHING */ /*!< Comment line 2 \
Comment line 3 \
Comment line 4*/
Why does clang-format escape newlines inside a multi-line comment? Seems redundant to me. I could not find an option to turn this off.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytk89vmzAUx_8ac3kKMjYk5MAha5eth22HbupxMvgBXo0dYdOo__1eSKYkUtetUp-QMX6_vvbH1F4_Vw89OtgjtH4cVITYmwCN18j4LeOb4whkTEjTOo0t3H_78vH757uvn-DKSy7j8MJLiyU9k3FRip-RibUUnPMfNIGjMbFlYsNExuQN3PhhQBfBHqpk8_r2qgE6bdpTzqWIORJetL83EOfSb7KrIvI9iuSXWz2OexN7YEveWOW6xYnMYvGEY-0DwiLEZ4tM3u6xfjTEDENMe4o_cOzwBNFPcTfF_8D4OsVXIL4nvldIAStu_n3Q12DmpbfnvcDioX8G7ZF-iksYGBq1Q3C4P-QFMC4YjaBgmGw0i7lYc6zM5BbuEYcAI-rJaUXNoocBU7ijmMlqcD4CHbsG5cDvovHuEBGn0Z1Qtm2aYJUtl8UyXxa5THQl9VquVRJNtFhdamNyA36ga3Fud1Srz3KJaK2ax2BV6DEQy2QabdXHuAuUPrPYdnQJpzqlXdCHtU9_Xovd6H9hQ1dha0KYDunbopRymfSkkK_zUq1WqlR1XkqFgjQjljrjhVjxxKoabahY8YEJQXJgLkFzVtwmphJciIxnkq8k7TLNOS9oy-U6E3lRtw3LOQ7K2PSgI_Vjl4zVLKmeukBOa0IMZ6cKwXQOcW5H9dUUez9Waqyx88ncuZqV_wY9gmkI">