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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy: modernize-use-using does not fix typedef of array
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          e-kwsm
      </td>
    </tr>
</table>

<pre>
    Prepare `/tmp/a.cpp`:

```cpp
typedef int unknown_size[];
typedef double known_size[3][3];
```

and `/tmp/compile_commands.json`:

```json
[ { "directory": "/tmp", "command": "clang++ -std=c++11 -c -o a.o a.cpp", "file": "a.cpp", "output": "a.o" } ]
```

```shellsession
$ clang-tidy --checks=modernize-use-using --fix a.cpp
2 warnings generated.
a.cpp:1:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
    1 | typedef int unknown_size[];
      | ^
a.cpp:2:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
    2 | typedef double known_size[3][3];
      | ^
```

does not fix the code; it should suggest/fix as follows:

```cpp
using unknown_size = int[];
using known_size = double[3][3];
```

<https://godbolt.org/z/7z7v4z6cf>
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VN1yqzgMfhpxoyFjZCjtBRdNc7jeNzjj2IL41GAGm3abp98xoWnT6e6evdhMHGLpk_TpDxWC7UfmBqo9VIdMLfHk54bz59cwZEdv3po_Zp7UzAh3AqiNwwTUqp2epiSQjyAOIN5_78Tlm7SrJL5NbLhDO0ZcxufRv44_gz3zJRzI_S3M-OXoGG9wMgG3xzv-GuhzdDWaG5LaD5N1_FP7YVCjCbtfwY__QHpVX0TVHqHeIxAZO7OOfn4DIpCPSfQegICe0n3z_wHQTo090B5oj3mIBuRBX65FgbnG3KPapZPKdHXTWccfPr4o_RKnJX5WeyBCqA-Y6vL3RbkKw4mdCxyCvWZJJa5U82jNG-a5PrF-DiAPgzc8j_bM-RLSsWOPed7ZPzfOqznhq5pHO_YBex55VpHNbuvEipKPxXbekenvEhiB6tUpUI12DJGVQd8l8TYISQHV_hse12wREQuE-gl_c8Zw_SQDqH7c8qT_mSfd8PzdIf-G8LctNp4Djj5ialA8MWpvGOQebcRw8oszGJa-5xCB2rWJATvvnH8N_7q_l95_riqCPKRSf6nuBfgFdsn0v-wwyKdTjNNKjFqgtvfm6F3c-bkHas9AbX2uX8rzne5A_shMI82DfFAZN0VNJZWCZJGdGl1Wsuz4KERXlqwEs5YP5X0py2OhJcnMNiSoFPdUFIWsi2L3oGplqvpOlKLSor6HUvCgrNs59zKk8JkNYeGmEFUlZObUkV1YX5vbwq9blDa0OmRzk6zy49IHKIWzIYYPP9FGx80nG_mI323cbV-34fEdqnlWb9kyu-ZLqWw8Lced9gNQm6Jtj3ya_S_WqftrCgGo3bJ4aeivAAAA__-DK7-m">