<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/144854>144854</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc++] std::abs should diagnose `unsigned char` and `unsigned short` uses
</td>
</tr>
<tr>
<th>Labels</th>
<td>
enhancement
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
philnik777
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
philnik777
</td>
</tr>
</table>
<pre>
Clang sometimes doesn't diagnose these with our current implementation. We should be able to add `__attribute__((diagnose_if))`s to re-gain the diagnostics.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxUkc2O5CoMhZ-GbFBH4IT8LLLovq16hbsskeAKzBAoYdOjeftRSlXTGskSkpGPfb5jicKeEBdhPgTA3YeYws9xHAWAMJ-NrexzWb77zZrd7-W_aNMuKR_I4UCSLiMlASNLF-yeMqFkj4TyV2Avcy1yq6VgYhmOe8QDE1sOObXyf5Tkc41OrijtGlFyltY5KQZ1vVrmEtbKeL0KmARML_lruAmYzxoUnSMF33Yb0rn2dQOHjdrGLZ2bu9k2uOjRqA5AG2j8okc33TTgrC1sCNgZ50Are0Pdaz33TVhAgVGDntXUGQOtHm6Tvo0GXeeMASV6hYcNsY3x62hz2ZtAVHHRfT-Zvol2xUhPsJi8TdvD-JNsWc6xt7XuJHoVAzF9C3Hg-MgkhnUT8HGW-ZTETnTvonu3K72w_QUuBlXTI00nN2-LGJS0yf3TJ58Lnx-VkJpa4uKZ73SKwkXAZQ_s69pu-RBwOa95Pm_3kn_gxgIuD48k4PK0-bXAnwAAAP__S8C7yg">