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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Check request: readability-use-map-at
        </td>
    </tr>

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

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

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

<pre>
    
Needs a check that will find an usage of `std::map::find` without result's checking and will suggest to use `std::map::at` instead.

```
const std::map<std::string, std::string> values = get_values();
// process(values["first"]);              // BAD - even didn't compiled
process(values.find("first")->second);    // BAD - unreadable and unsafe
process(values.at("second"));             // OK
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsktFuqzgQhp9muBkRGRuScsEFaZqblXYfYWXsCfGuY3KYcaqepz8ipKenVZElMDP_N79-jWUOYyLqoNlDcyhslvM0d57Sz2nWShXD5N86UP3fRJ7RojuT-x_lbAVfQ4x4CsmjTZjZjoTTCWGrWDyYHkx_sdf1Y-mCrcLXIOcpC87EOQroHa_AkEa0ya9IzuNILCgTZqbvgVYWXEgsZP0GVL-crXoc1bspseBn3fPvK8sc0gj6Gb_-Mi94szETI5gDjiT_rlfQT6BbMPtljj6CPuJ1nhzxUnm0NHvQ-hRmFtAamsMqwE_PQ7vvD1gi3SihDz6B3gm66XINkTyo_it6c89vsfDB120J5oXJTUvpfdInfk4zWW-HSPdwc2J7ou_wVlb4O22hf-P-Af_nry9hF74zvjWtLairdrWpKqWrtjh33lRPzVBRXZOy9dD61jba2RNt3al29bYInVa6UUbvdFVtm3ZDjdVVdWrczj3ZwVdQK7rYEDcx3i6baR6LwJypq4wxVVtEO1Dkbo3eRZvGUoJ_W_Mv5m5RlUMeGWoVAwt_cCRIvK_9H7LmgM_3_Z7pRyYWMD2uEYYY5K3MTOXFXksrRZ5jdxa58rI-91zGIOc8bNx0AX1cxjxe5XWe_iMnoI937wz6-LB_6_SvAAAA___kyA9X">