<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56009>56009</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy: readability-implicit-bool-conversion not working with std::optional
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Amaroker
</td>
</tr>
</table>
<pre>
I am using llvm-13.0.1
I would expect this to trigger a warning:
`std::optional<int> x = false;`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUN1urCAQfhq8IRp01F0vuNh2z0n6GICsThfBwNjtvv1BT5M2aUJg_r6fQYfxKd-4WviW0E_cuY-lrKESVc3ElYnL__uNP8LmRm4_V2uI04yJU-AUcZps5Io_VPQZz-DyE8Z6kWjci3AJK2HwyjF4RU8M_vBPzuDKb8oly-AlzxajhHGAQRWE5Kw0TvmpJByfGc-jVaPS6JCeJS6rQ4NU6hBcaYL_sDFleu4DZavxvu_yQJr5L_1ii07ORGva683ffKY8uOnKhCUn-w98PeUaw3veN6eY0mZTDrpeiKGY5XBr1ADaaCMs1PVtOBvo1BnaW9_AqTWFU9q6JFn3wprG2wc_KHLMumuBshFNI_oaxKk-AVTnvoOx1W0HIHqjzqwVdlHoqt1HFeJURHlY0tuUctNhovTdVCnh5K095DK_2mgOUV4WFcPdxuLQlof3fxXPnuM">