<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56619>56619</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] modernize-loop-convert for type with no begin() and end() members
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
denizevrenci
</td>
</tr>
</table>
<pre>
clang-tidy issues a `modernize-loop-convert` warning for [this class](https://godbolt.org/z/fv5GPsbrj) when iterator based C++03 for loop is used with `cbegin()` & `cend()` as the C++11 range based loop requires `Class::begin()` and `Class::end()` OR `begin(Class)` and `end(Class)` to be implemented for the particular type.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUs2O2yAQfhp8QYlsHONw8GF_tD226huAmdisMHgBJ8o-fQe72XSjSlhmmOH7GUZ5fe16K92wS0ZfqYlxgUglJbycvIbgzCfsrPfzrvfuDCFhgl4knruBnnygpHlOo4kUQWIkzSthxzGlOZL6ibA3XIPXytu092HA6BO_07n58Suq8E6YoJcRHDUJgkyIpmQETV8Ie8ZV1itDZkdhdMmpi0ljFtcrGIxDMsTIkgjj6zE4fT-UkaYRbnBVRQMahb8kK2yAj8UEdIzlL6sDlF0_PYBLpx8KvtH8_J2ztztb1beLW_W_ieSpAmqm2cIELqGc7DSLnWVIpl-sxPA6w77QXa1FLWSRTLLQYb_v74X9pv9_pg0PAbaOucz35WnV9WWBTjApCLFYgu0e3g7vLmrf-wkDa8-3324O_h36hOE2MbhpOK9EMXaCK2iFbCoh-FExJZVqTz1vm0Otq1YeCysV2JiNEMYcXLahwz26KUzHSsbKthKsbNrDYa95ybnQjazLU3WUjBxKmKSx-6wjD1URulWSWoaISWtiivckttwMDta-ZXy5pNGHTkPu2DmA602x8ner_j85zviK">