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

    <tr>
        <th>Summary</th>
        <td>
            `<ranges>` doesn't seem to be detected
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-include-cleaner
      </td>
    </tr>

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

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

<pre>
    Given
```cpp
#include <iterator>
#include <string_view>
#include <ranges>

namespace stdr = std::ranges;
namespace stdv = std::views; // imported from ranges

template<stdr::contiguous_range R> // imported from ranges
[[nodiscard]] static auto to_string_view(R&& r) noexcept -> std::string_view
{
    return {r.begin(), stdr::next(r.begin(), r.end())};
}
```
include-cleaner produces
```
[3:1: warning: included header ranges is not used directly [misc-include-cleaner]](javascript:;)
    3 | #include <ranges>
      | ^~~~~~~~~~~~~~~~~
    4 |
```

Repro: https://godbolt.org/z/a3bMh7xso
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE1v6yoQ_TXjzSgRAX_ECy-Spnmrt-kfqDBMHCobLMBp-xbvt1_hpEn6ca8usjCYM3PmHI-QIZjOEjVQbKHYZXKKR-cb9aLbrHX6vfnHnMgC2wHbQMnOjxrHyxcujFX9pAlBPJhIXkbnQTz-dByiN7Z7Phl6_Q3CS9tRuB3Os5UDhVEqwhC1RxC7tACxAbH5CNj-AD19hibahETge-B7NMPofCSNB-8GvCS6o400jL2MNBeu_TmJcjaabnJTeJ4j8AnE419kTN5urdMmKOk1FDsoUmkyGoVyig6je763h6-fgJfAS_TAa7SO3hSNEReJ7irpPuLMU12MQET0FCdvEaqtX7bUGQt8DbwG_oA3QZbeIvD1N4RfktUf2xqq3dXjtP7cDeft5TcuVE_SksfROz2pqwOfwVBsBYjNCsQGX6W3xnZpecmh8UhSk794iCagdRGnQBq18aRi_45QbAcT1OIL79lb4OsXeZJBeTPGWek2ybh6IxCqB_xj8-E8Zljx-P-XcYPkCfKzxnl-otG7pO0Y4xhSKXOzdE63ro9L5zvg-_-A76Vo_z1Wb8FluhG6FrXMqFmVNasLzoo6OzY5byWnQlalWAnSmg6VFi3LVb7KtahVZhrOuGBrxlle5Kt6SbSm6lDUJdOclYcCckaDNP2y709D4s5MCBM1ZS54nfWypT7MFwHnqpe2-2Yu5-mO8E2KX7RTFyBnvQkx3DJGE3tqkgv3lpYMtaNggVcRA9GA0WFLqCmSiqSzyffNF4tMPE7tUrkB-D6lv7wWo3cvpCLw_Vx9AL6fBfwKAAD__9XCccI">