<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64229>64229</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format misunderstands "[[attribute]] label:"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nabijaczleweli
</td>
</tr>
</table>
<pre>
clang-format just gave me
```cpp
[[maybe_unused]] warn : if(count) std::fprintf(stderr, "%s: %s: truncated, %" PRIdoff "B lost\n", argv[0], file, count);
```
but if I comment the attribute out I get
```cpp
/*[[maybe_unused]]*/ warn:
if(count)
std::fprintf(stderr, "%s: %s: truncated, %" PRIdoff "B lost\n", argv[0], file, count);
```
which is as-expected.
Clang, of course, understands the attribute on the label as-expected here.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMk81urDoMx5_GbKIZZcxHy4LFfAipu6v7AlchMZAqhFHidG7P0x-FaXvaSt0fCWHFxn_bP2IVo508UQf1CepLoRLPa-i8Guyz0r8c3cjZYljNa6ed8tNuXMOiWDynyGJSLyQWAnkBeYRG3h99vb55suRpUa8D_Zd8imSgvkB9ETcVvIDyKOwI-KjX5BmwFZENlEcoj-M1WM85FtlQCIBnAYiAdcxZ75ZD8loxmXu8BkTxz79PZh3H_PlJuDUy1Ge_5Z6FCtML1CeZu8CzGK2jbN_rQ3n6Nsn9OCQWdhRPQq_LQp4FzyQUc7BDYhJrYvEkJuIfMWAP-COMHMJ-Q5KHv2fI9guZDy_I9i-FdJutnoWNQsUd_X8lzWT2733n9znfnqy0jlksxE02eUMhsvImfsfqN4dTA7nPomKmQPvCdKVpy1YV1B2aVjbt4wHbYu7USJU2VTWODQ5Nox5qLNvDgbQZqkY2qrAdSizlQyllgyjbvTYPw9iYx7YplamrGipJi7Ju79zLsl_DVNgYE3VNhdgWWz9x2xZETzexBTO7-lKELufshjRFqKSzkeMfFbbs6OsSLTZ-BrCp5FvyQeFtX7ai-a8jFim4bma-xu3cA_aT5TkNe70ugH0u92Z217A-k2bAfmsyAvbbEL8DAAD__-o0LxY">