<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/156149>156149</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Enable more checks in `.clang-tidy` config.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy,
code-quality
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vbvictor
</td>
</tr>
</table>
<pre>
There are some useful checks that are disabled in [.clang-tidy](https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/.clang-tidy) config.
Each check should be analyzed for usefulness and enabled (or kept disabled) with closing corresponding subissue:
- bugprone-suspicious-stringview-data-usage
- bugprone-unchecked-optional-access
- bugprone-unused-return-value
- modernize-pass-by-value
- modernize-use-auto
- performance-type-promotion-in-math-fn
- performance-unnecessary-value-param
- readability-container-contains
- readability-convert-member-functions-to-static
- readability-named-parameter
- readability-simplify-boolean-expr
- readability-use-anyofallof
Command to run:
```console
./clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -checks='-*,my-check-name' -p build -quiet clang-tools-extra/clang-tidy/
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVFGSmzgQPY34UcnFyAabDz6cTHyCvUBLakAboSZqyQk5_RZ4Zmeyk6rdrVIV0P3o109SP2D2Y0TsRfNJNM8VlDxR6u_m7m2mVBlya__HhAklJJRMM8rCOJQg7YT2K8s8Qd5zzjOYgE76KEXz6WADxFFl71bRPAt9mXJeWByvQt-Evo0-T8UcLM1C30K4vz7UkuhPtFnomwlkhL7N4KPQt5dyRIEV_sgJ3mIbhb69J9SdtBQHPx5Eff0Cdnp0K3miEpw0KCFCWH-ikwOlF0URmSVEJzE-hAh9oSS_4pL_FrdV_u7zJG0g9nGUllJCXii67YuL8cwFN5n1VUlTxiVRRMWFF289FVack4_j3eN35SCDKgwj_ooucW8XnaIle4oQFFiLzP-EFUanEuaSorpDKI86MzlM0f9EtQCzMutvc4VRQcm0hxdMA6UZokWV1wW3Y5hp41Y-qhnypIb4AVlixK0tSC8UaoEE845LCA6MDz6vylLM4COm1zf-HeSOKasZZ4NJDSXajZ1VJsUZsrcffokwo3swYsb0Ic9-XoIfVmWIAkJU-GP5iNq3Ia40QAg0iPr6WJ9pnre7kEmmEh_nKdr6sSxFprBt6OG_3MwtJfQtlaje4odlleoxQ-L4LPRZCX0V-vO8PqK7PKHPUi3SFB-cVN-Kxyz_le59p6K-Vq4_uu7YQYX907lpm2PXdG019YjOPnU4nC0i1JfBuTOCaW1rOzeY1lW-17Vu6suxrs_HrmkPx2PnzEk3cGqMuRgQpxpn8OGwTe6B0ljtt79_atqnU1cFMBh4txat37eohf68hcih-lZgO4ct2DxXqd9NwJSRxakOnjO_Fc8-h92pfrEW-WUfVzlTwldT2iyord87Qlu_OkJVUuj_txntwljo24u2e6__CgAA___u0MkT">