<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92662>92662</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
regression: clang-tidy hangs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Dushistov
</td>
</tr>
</table>
<pre>
In attached file there is config and c++ file that depend only on standard C++ library.
If I run such command:
```
/opt/clang/19.0.0/bin/clang-tidy --config-file=path/to/clang-tidy-config --extra-arg-before=--driver-mode=g++ gen_qmlregister.cpp -- /usr/bin/clang++ -std=c++17 -c gen_qmlregister.cpp
```
it takes hours or two to complete.
19.0.0 build from 20240515 git snapshots.
clang-tidy from 15.0.7 works just fine, maximum several minutes.
17.0.6, 18.1.5, and git hangs.
[test_data.zip](https://github.com/llvm/llvm-project/files/15366221/test_data.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8-umzoQxp_GbEZGxuZPsmBx0gjpPEVl8ABujc21h7S5T39FQnRPpG4qIYPRN-NvfjPWKdnJI7asurDqmumN5hDb65Zmmyjcsj6Ye_vpQRPpYUYDo3UINGNEsAmG4Ec7gfYGBiYvTF5eAk1gcEVvIHh3h-AhkfZGRwPfDqWzfdTxnjNxZeLjuX6O8Alx85C2YYYhLIv2hqmPrxpWi-N5bmUXVmKyG5z2E5Ndcc5FLpjseutfvzlZcwfOn4b5bpKp66ppZrKj8CY7RMA5_qaouY4T73EMcQ_h3ER7w8iXYPb9dBQzof_-z-IiTjYRxnxYV-AcmOy2FN-9HBHAExmmrge4ogHgw5_y_Lnqx2oJSP_EBHPYYoIQgX4FoLCTWx0SvsF9goF-s87AGMMCUshSVEUFkyVIXq9pDpSOoC_gHuKiykXewK8Qfyb4sSWC0Xpk8hss-rddtgUS3jBqB4v1G-ErT9HkIq93XXHKi7zav_aJ2c-ctZ_Sm0lWXQgTfTeadP6vXVl1ZfI0E61pnwPZMdlNluatz4ewMNk5d3u9-BrDDxz2Ydg7nPZhqFRdS1nsbX5LK8_P8zLTKnNWZ51hWzRFLSqlmiKb28o0lZI1NqezKE2pSlEN5SjGQpVDpeoqs-2B71Q08qyKvBlK1Z960TdKnfQwslLgoq3Ld295iFNmU9qwPcu6lpnTPbr0unmxfRTQb1NipXA2Ufo_jCw5bCNOEVOywTP1AV-684CYbdG1f43pYWjn9PD0XwAAAP___sJBuQ">