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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy - false positive for modernize-type-traits with structured bindings
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy,
            false-positive
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          matthew-f
      </td>
    </tr>
</table>

<pre>
    Hi 

Using an llvm update from a few days `modernize-type-traits` is generating what looks like a false positve.
```
std::map<int, int> map = {{1, 2}, {3, 4}};

for (const auto& [a, b] : map)
        {
                std::cout << a << b;
        }
```
generates

```
main.cpp:36:20: error: use c++14 style type templates [modernize-type-traits,-warnings-as-errors]
   36 | for (const auto& [a, b] : map)
      |                           ^
      | _t
main.cpp:36:23: error: use c++14 style type templates [modernize-type-traits,-warnings-as-errors]
   36 |         for (const auto& [a, b] : map)
      |                              ^
      | _t


```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8U82OozwQfJrm0iIydszPgQMkE30v8J1XBhrwDmBkm0TZp1-ZyezMrGYOe9htReoOtqu7qlXKOT0sRCXIGuQ5UpsfjS1n5f1It7iPGtPdy_80AquAVf87vQyoFpym64zb2ilP2Fszo8Kebtipu0NI2Ww6sov-QbG_rxR7q7R3kDLUDgdayCofgG6j8jgZ8-xw0s8UQNTkCFfjtL_SITRN2ePHKuc7EBWIalYriJNePPAThiSecFYrgjgjZDVkdRJOOGTnkCGrRcjH8D87g6hf2PTGIvC8NYvzqDZvgKcIslbhcgPyjCCqAAy82F8UAfylYMWvaVqzeQRxAnFC9Vo0r12K0PEjj4cC5F7GeH80K70c2nUFUYkURMVZGIGsNTYUmyNsgdfA6-SIzt8nwqAweprXKUCG-T9Xn5_im7KLXgYXKxfvmA5kGA4RRYqQnfAPJcE9wsOvA-TTh5vf_Gc8xb_l-Rp_ge9XlH9bdtSVoitEoSIqk0zKpMhFlkdj2faslyLJFE_znKssS1LeJ41MJaWJyopIl5xxyfLkmBQsTfJDliUdY1ISsT5v8hyOjGalp0Nw6cHYIdLObVQmUqTHIppUQ5PbHc95O6lliL3u7sA58BNwvnsw3j2orxQ-y3NkywAWN9vg4Mgm7bx7g_faT1S-QWH83sj6SrvOn64Lb9qP6LzdWr9Z6rDRSxd2F212KkfvVxdcxi_AL4P249YcWjMDv4TmjxSv1nyn1gO_7EQd8MuD67XkPwMAAP__l_BqXA">