<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138492>138492</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang Tidy][Efficiency] Clang tidy wastes endless time on checking non-usercode
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hasselmm
</td>
</tr>
</table>
<pre>
* Actual behavior: Clang Tidy searches for errors in non-user code.
* Expected behavior: Clang Tidy only does the abolut minimum when processing non-user code for efficency
Clang Tidy is slow. Very slow. So actually it's very surprising to read such messages:
```
Suppressed 48487 warnings (48482 in non-user code, 5 NOLINT)
```
So Clang Tidy tells me proudly it has wasted endless time on identifying 48.487 errors in non-user code. Code I am most likely never every going to fix. Code that I most likely cann't even fix without causing serious problem. This is bizzare, to put it nicely. Efficency is key to make using Clang Tidy a no-brainer, a mandatory task in C++ programming. Therefore Clang Tidy should spend as little time as possible on non-user code. It should just skip non-user code without even trying to analyse it for flaws.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0lN9u2zoMxp9GuSFqJLKdOBe-SLsFKHCwc7Hi3NMybWvRH0OUknlPfyA3xdoOQwwkiMmP_H6khMx6dEStqB9F_WWDKU4-tBMyk7F20_l-aYU8wUnFhAY6mvCqfRDlCZ4MuhFedL8AEwY1EcPgA1AIPjBoB867h8QUQPmeCrE9ZaWvP2dSkfq_aXlnFug9McSJADtvUgSrnbbJwm0iB3Pwipi1Gz9WeK0-DFqRU0sutz7vtDUDG38r4D8Ky_3ndw-4mjML6CjkgeG6vk1hDnqtEj0Ewh44qQksMeNILMq7vthv78_29D3NcyBm6qFqquYANwxOu5FByCb_I__gIuQT1PDt33-ev70IefwkmDX9ezyRjGGwlCmkfu0ZJmS4IWeo5HpDzBC1JfAOdE8u6mHJNqqmyC39bT7wlBk-A1qwniMYfSGzgKMrBaCVyejvOAb98x4fJ4zw_CFDoXNCHmJOcjkUbjpOPkVQmFagTEH7xNlDZ8gW8DJpztPp9K9fGFYm0cOcYrbntCKzFPD1bbQ58kJLDrF4IXgVfQcJwfmHLqB2FLIWgkXXY_RhgYh8yeafhHwU8jH3MAa0Vrsx90GBBh_ow3ZPPpkeeCbXAzIYHaOhV8TIMHtm3ZkV9yeiz_Et-UfiCHzR86eVfSOzoophufNFh2Zhyu7zUg8Gb1xs-rbsj-URN9TuDtW-KmVTNpupxaNS-6asj51SqpO73VDJI25LrA_7Zodyo1u5lfU2f5pdWTcFUdc3--2x2Vf9MKhaVFuyqE1hzNUWPowbzZyo3ZVNdZQbgx0ZXi8JKVUmI6TM90Voc8JDl0YW1dZojvxbIupo1pvlN0tRfxH14zpIvR7S-suddMyk1yXmP5ZYTaQu7497RrdJwbRTjPN6EuVZyPOo45S6Qnkr5Dm3cf96mIP_QSoKeV5tsZDnu7NrK_8PAAD___gptGE">