<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61520>61520</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy-16 cannot disable clang-analyzer-core checks
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kiwixz
</td>
</tr>
</table>
<pre>
It used to work with LLVM 15.
An example working as expected with another check:
```sh
$ clang-tidy-16 --checks=* --list-checks | grep NewDelete
clang-analyzer-cplusplus.NewDelete
clang-analyzer-cplusplus.NewDeleteLeaks
$ clang-tidy-16 --checks=*,-clang-analyzer-cplusplus.NewDelete --list-checks | grep NewDelete
clang-analyzer-cplusplus.NewDeleteLeaks
```
An example of a problematic check:
```sh
$ clang-tidy-16 --checks=* --list-checks | grep CallAndMessage
clang-analyzer-core.CallAndMessage
clang-analyzer-core.CallAndMessageModeling
$ clang-tidy-16 --checks=*,-clang-analyzer-core.CallAndMessage --list-checks | grep CallAndMessage
clang-analyzer-core.CallAndMessage
clang-analyzer-core.CallAndMessageModeling
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VE2PmzAU_DXm8gQCA2Y5-JBuFKnSbo-9P-wXcONgZJsm2V9fJSFtV9vtrqq2Eh-SNTPMvHkCQzD9SCRZ_YHV6wTnODgvd-Zgjk9J5_RJfowwB9IQHRyc38HBxAEeHj4_QlFnLF-zfHV9rkagI-4nSxegGXvAAHScSEXSVx6OLg7kQQ2kdqxcmEzk1ysMywGvQFkc-zQafUoLAWl6oQRWrhlfQZpaE-JyBqy5h97TBJ_osCZLkeCqAwCLDo5oT0_kUzXZOZzv7Dt4wb4NfCDchfc5ZPw-fVvw7-b42d5toq8U5LaAMHnXWdpjNOpfFXKP1q5G_UghYP-7NM5T9hz8SisvgY9OkzVj_-fFvNR8X57_EefWRKJlqduyxYRkIZqWV0JUTTJIoVpV6Oauae40VqjrvNiKrSCOTUdK5ImRPOdlXhZt0fAqbzJR8QrrUgnkumhEy6qc9mhsZu3XfeZ8n5gQZpKiqHmeWOzIhtsPwsszKO3mPrAqP88o_KBFEy3J59NXOI4ugjYBO0u_yn_dvZDM3sohximc15BvGN_0Jg5zlym3Z3xz_srySifvvpCKjG8uTgPjm4vZbwEAAP__1s6MkQ">