<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/107913>107913</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy modernize-avoid-c-arrays on std::unique_ptr<T[]>
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
avlec
</td>
</tr>
</table>
<pre>
I don't think this should warn?
Seeing on clang-tidy 17.0.6 also tested on trunk on godbolt running clang-tidy tool with the argument `--checks=modernize-avoid-c-arrays`
```cpp
#include <memory>
auto func(int num) {
return std::unique_ptr<char[]> {};
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0UlGP2yAM_jXOC0pFTJNcHni4u16kPW_vEwEuYSXQgemp-_VT2mrXSZuEjA3-wP4-q5zdHKyV0L5Ae6hUoSUmqc7e6mqK5iK_MBMDYE-MFheOm80sL7F4wz5UCiBG4Afgzzf71VoXZhYD016FuSZnLqzpd3zXMeVzZGQzWbMlUCrhuDlzNFP0xFIJYQM_IClGzz4cLYwWy1Say2oDMeh4XevF6mMGcVijsSm4X7ZW5-hMrWuVkrpk6PhjaVt4Xfp0up-gcEH7YiwD8braNaYLiLdHkCoU2XsJGvDJBWKhrIADg_7lds8YY8lSSYFlMiCeQTyX4H4W-_1ECcSrXlS6kQvi7YrrDyDu6M3_u7ZbWBkpzCAGVVnZ9NgOTTu0olrku-ZKcIG9eOKqVQ12XIim7dE0ezMNvHISOe75wAdseNuKHe77rlMCzV4PjeoR9tyuyvmd9-d1F9NcuZyLlQ3vh0ZUXk3W5-s4IH4KAYjbeCS5oeqpzBn23LtM-fMdcuStfBDvf7psmv-brG9_mKpK8nIhOuUtDUfAcXa0lGmn4wo4br_et_qU4g-rCXC8tpIBx3s3Z4m_AwAA__8gFOJM">