<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58693>58693</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Support silencing -Wimplicit-fallthrough via comments
</td>
</tr>
<tr>
<th>Labels</th>
<td>
enhancement,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
GCC supports silencing the `-Wimplicit-fallthrough` warning via comments, for users that are stuck in pre-C++17. That's not the case for Clang, however. It would be good if Clang had feature parity with GCC in this regard.
Example on Compiler Explorer: https://godbolt.org/z/8WboTT1n8
Off-topic: it seems Clang is diagnosing this warning twice for the same line.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUUtvnDAQ_jVwGS3i_Thw2JJs1VMPjZTzYAZwa2zkMbtJfn0Nm6hpVclgj2b0zffozfDafu064G1djXUMLBVpIfUEbiYIyvj0LJdVSSHdaUSl3GzNNs2-ATe0eh-8SgRhloW04yDtYDQWNibLHgIdoCVgt4lfIDWslk5dkH7xJ6kiePIDQVoxaOOOhQKZDoBOoZ52tNnc6Eo2gm8ObmZTA_QEkzEDyPE-BTMOMBK6zW9a0Ur3CjfpZtiF-Z1ulgyWJrRDFMQPQXy-_x9f0CsjMBo6s6xeuIXHl1UZSzbIzjA7t7J_BOnFn8kMvVEuMtbTurz5r37uzdNTouvPoN_H8eTMKsWOIB0w0cLvPD2NQeKkDd_99fWHh-4mxV347gLjQqCkpiikNinLKkmrPKnDoc2GJmswdNIpan_cQ_uU2f_D-iuhcLOq_UeaN2vrIz_hC6WuH9dpteYnCZ_QRTJv5NO9FHXZZOHcFgOKJBv7LM7HKqlwbPq8waJJGxI5ZmWosCfFbVD4rFPSM2pBOwFf7bH6SxwRZ-d3T5wUvDeLh1C2aZymSZzFSVyURR3VRSJE4RcMY5nnVRXkMS0oVbTT3CMJbXsw7reJfVNJdvynicxy0kQHG4-Pm5uNbQVaZXhCdaW3NTwktoe-31t7BtI">