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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] bugprone-shared-ptr-array-mismatch unable to detect alias case
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    When the type is alias with `using` or `typedef`, the `bugprone-shared-ptr-array-mismatch` check will not report array mismatch that really mismatch.
```c++
// report as expected
std::shared_ptr<char> sp1(new char[10]);

// but not the below one
using byte = char;
std::shared_ptr<byte> sp2(new byte[10]);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUs1unDAQfhpzsUBgA1sOHJJs-go9Vv6ZgFuDkW2yu2_fsQlND5EqDfL8fvPNDNLpx_hjhpXGGWh8bEBNoMIaEejNxJmSvt6DWSd8qfPJTEka3lAj7CWXoSr3afNuhTLMwoMut-hL4b14lIsJi4hqTgBqBvUbca2lq4vUw-Z8pDmPnnmIKFJIWPvprEh9JfVT6plFEfac5PCy7yh_0QKF-wYqgj7CIWrCn1AOaj-RGuEvCg3CX2nYGsK-rXCj2dM9NzXproQNhJ_w_zaRe8zU09gSrLtRHPrIyGui8hFxIfx6wJ0YX3NIuQcH9sEhe77icA5e6JHrgQ-iiCZaGDFZWbFOZTT6gUX0_4eg-yqkxWM7qiHioj7OrUSAYvd2nGPcQqKbR57wL9hlpdyChrXv51Nim19YjaYJYYeAStd3bV_MoxxazppBXnjdd6zpGvyg50LxfpCM68IKXF5I7AljafAMgTqOUJiR1YzVF6zj3dBcKnVp34Ar1jYwMGgkaWtYhLFV4lE5PxV-zJRw-IBBa0IMn0ERgplWyMtK-GKPs_NjNMv9XuTGYyb-B7tn9WA">