<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68577>68577</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Enable bugprone-unsafe-functions when annex K is not available
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Ashimaru
</td>
</tr>
</table>
<pre>
Currently clang-tidy's[ bugprone-unsafe-functions](https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unsafe-functions.html) more strict cases are enabled only for annex-k supporting implementations.
We have some of legacy c++ code where we would like to convert those functions to std::copy_n etc.
It would be valuable for c++ migrations and modernisations where we want to replace those functions and discourage their further use.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ks-OmzAQxp_GXEaJjAkJHDgk3SJVfYAeK2MGcNfYyDNONm9fQbK7aqteQOLT9wf7p4ns6BEbUV5E-ZLpxFOIzZkmO-uYsi709-ZLihE9uzsYp_24Y9vfhTqRKC_QpXGJweMuedID7obkDdvgSZQvQlUT80KiOAvVCtVu9r1z13kf4ihUi28c9bvwzG3NhOaVhGrfs4Vq_07fTzw7oWqYQ0QgjtYwGE1IoCMCet057CF4d4chRNDe49vuFSgtS4hs_Qh2XhzO6Fk_EoV8EfL8eP5AmPQVgcKMEAZwOGpzByPURagLmNAj3CaMCDeEW0iuB2dfETiACf6KkYGnQAgfg1eJuF-PojibsNx_ekA2z9Zv_EzpEK7apXX9tvu9cbZjfOwE7XuAOfQYvaXnt88t2vNaFXFx2uA_K1Zzb8mEFPW4ymgjDCnyhBES4T7rm6Kvi1pn2OTH-liVMpdFNjXVkJeHSppDrgrZmQ5rnWMl9dDnnUI5ZLZRUhW5lHWe56Us9qYuisqcCsTuVPTlURwkztq6DwAyS5SwOVbl6ZQ53aGjjUOlPN5gE4VSK5axWT27Lo0kDtJZYvpMYcsOm6_blf-fx_WM_IMD-A6WwAcGfdXWrb4sRdf8CetoeUrd3oRZqHYte752Swy_0LBQ7TZxJXX7hd8BAAD__4ZwIGY">