<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123376>123376</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
detect repeated STL container lookups
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy,
check-request
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
@kazutakahirata has been fixing a lot of duplicated lookups with STL containers in recent months - like
c5312553cb7a49b53ba2bac40fbc3c1745855844
94e9813a20ed5885ae2908f8519f93d8082fd1f3
I do not know how these were found but it would be great if clang-tidy could detect these.
See the history for way more examples: https://github.com/llvm/llvm-project/commits?author=kazutakahirata.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks1u2zAQhJ-Guixs8NeSDjq4DQwU6C19gSW5slhToktSUdynL-wkCHLsieQSGOzMfFhKOC9EAzPfmHlqcK1TysMYMm34Qo1N_jYwzS_4d614wSlkrAgTFrBEC4zhNSxnQIipQhrBr9cYHFbyEFO6rNcCW6gTPP_6CS4tFcNCuUBYIJOjpcKcljoV2EEMF2L86IwS0hjlbIu6t0ZZlBad5qN1yolWm86YTmvGj72mvhMKJSdvus4gyZ53Y2dEP_bKd7yToxejYvzI-PEH-ARLqnBZ0gZT2qBOVAg2ygRjWhcPdq0QKmxpjR4swTkTVggjuIjLeVeDv4F7fHqq5Oqbwv5N_5no_oYplJryDcaUYcMbzCkT0CvO10iFqSNMtV7vFyZPTJ7OoU6r3bs0M3mK8eXj2F1z-k2uMnlyaZ5DLUyd3tph6ulrHfvGD8r3qseGBtGqVihtNG-mAUWnlbDKHrRsufbIjeKt1uh126OlJgySS8OFaEUrpeT7XtjOHogOrew74xTTnGYMcX9fap_yuQmlrDQIqVR7aCJaiuVBj5SfMTEpmfx-H03kLrtMf1Yq9T41T00eHgbtei5M8xhKLZ_qNdRIw3u-ma70YOkLPh9kNWuOw3-n-Vi_MHl6d_AyyH8BAAD__2j1_GI">