<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135321>135321</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] -Wimplicit-int-conversion shows only one warning at a time
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
Consider this code:
```
#include <cstdint>
struct Foo
{
template <typename T>
explicit Foo(T data) : data_(data)
{}
std::uint8_t data_;
};
int main()
{
Foo f1{0};
Foo f2{1};
Foo f3{2};
}
```
[Godbolt](https://godbolt.org/z/r133qxPxo)
Here, we expect 3 warnings from `-Wimplicit-int-conversion`. However Clang only prints the first one. Only after we fix it does Clang print only the second one, and so on. This makes for a very slow fixing process, it would be good to get all the warnings from the file at once (like it happens in the general case).
Not sure if this is a general problem with the Clang diagnostics or this specific warning. Is this intentional?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0VE2PpDYQ_TXmUpqWsaGhDxz6I2RzSXJYKceVMQXtrHER23TP7K-PDGRmEimSpXZX-b16r1xGhWBGh9iw8sLKW6aWeCffaOUthVHZB_6Ys476t-ZKLpgePcS7CaCpRybPjK_ryPfFz0xI47RdegQmrzrE3rjI5E_byRD9oiO0ROl_dWH8DAAQcZqtiiskvs3o1ITwdUOlPL7O1mizAUX9FXoVFRMnYPK87r8xUe-xHZLIq9tWFULsk1h5XoyL9be4Y-RlVXHbN_xsXIRJGcdEvTF9SGyJYMhZdeHvgPewYNUl_wivMcmqi_jg3qR87hM_s_LyM_Ud2cjKGxP1PcY5JJ2iZaIdt9SB_MhE-4OJ1udS_vX6-yvt2vj5C3pk4gpPTC1CHUHCU3ln3Bhg8DQBO_KXP8y0te_FuPiiyT3QB0OOHfkBvtATH-jhapUbgZx9g9kbFwPEO8JgfIhADg_wW0qpIaJP5QbzCiZCTxh26IraCBIyoCbXJ2gSqFwPgYDcAb6m8ZnUdwwwkAcFD_RvECw9E6lZmUhjCAlnIjxpsT10CCNRD5FgxAjK2rXKv81uii2CSkI0AhO1Nd8x0dzVPKMLYNx6bESHXlnQKiATp8PWz18pQlg8ghm2MTcB1PvZ2VNncYKnifeVZDPeGzU6CtHoALQ_jzCjNoPR_wg8wC9hZ3QRXTTklGWyzfpG9id5Uhk2eVUUspS8zrN7I4pOdYWsdF3lhcSaD_zYdVVRVwPn_SnPTCO4KHmR5_woc5EfcDgWPepjkYuSq0KyguOkjD1Y-5jSFGUmhAWbXJZS5JlVHdqwPnshdDLC5HnwlOT1TAgmrp8SnzymXHnLfJN4X7plDKzg1oQYPipFE-36Sdnw5Q3-dwgh3OkZtrkh936j6QoVRDNhtnjb_OdpmHhfuoOmiYk2Fd1_XmZPf6KOTLSr18BEu9t9NOLvAAAA__9_o47R">