<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/140515>140515</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] concurrency-mt-unsafe should not flag strerror
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          carlosgalvezp
      </td>
    </tr>
</table>

<pre>
    The docs of the check state:

> Glibc’s list is compiled from GNU web documentation with a search for MT-Safe tag

And `strerror` fulfills exactly that: https://www.gnu.org/software/libc/manual/html_node/Error-Messages.html

> Function: char * strerror (int errnum)
Preliminary: | MT-Safe | AS-Unsafe heap i18n | AC-Unsafe mem | See [POSIX Safety Concepts](https://www.gnu.org/software/libc/manual/html_node/POSIX-Safety-Concepts.html).

So `concurrency-mt-unsafe` should not flag it.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysk02PmzwQxz-NuYxAYCDAgUP2hdVz2KcrZVfqrTL2AG6NHfklafrpK5Om26o9VkICxpr__H8zY-acnDViT-o7Uj8kLPjF2J4zq4ybmTrht2MyGnHpXxcEYbgDM4FfEPiC_As4zzySck_y7Skf4UnJkZNHStqcdJ0DJZ0H6YCb9SgVCpisWeHp_zc44xgVw4raMy-NhrP0CzBwyCxfYDIWnl_TA5sQPJuvJfZaANnlzlu01liyy2EKapJKOcCvjHt1Ab8wT8o9LN4fXTRHB0KH8_mczTpkxs6EDs5M_swsEjpshumwMh2YInRY_Ko-aSPi2WMskj6jc2xGl8Wjd9QhaB59x1p8YRYI3cPNGRDaSu0BrdVhJbQj-f7FopKr1MxeYg5p7n8Cxu_9IX3TLv4tyI4gi1Zf4_e3-IrrFjkgAqnvXj4c_vsIMd9f4N5ojkfvSP1AaPsP2Df19Kqe3tSvLaBddm3DwcRpcKN5sBY1v6SrT8NmNo7GLSYoAdp4mBSbQfosEX0purJjCfZFUzW7qqy6Iln6hrdd05R53exqNjY7QWtetrwZWbUTRVUmsqc5rfO66PK2LMoiq8U0jUUnsCy5qHNBqhxXJlWm1GmNrIl0LmBfVHld1IliIyq3bTqlXDE9p16KC6E0br7tY1Y6htmRKo9b6951vPRquyO_pNUP8FfuP6BvG5EEq_rf5zJLv4Qx42aNs1Cn2ys9WvMZuSd02BAcocMPilNPvwcAAP__1Ek0-w">