<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55007>55007</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy check cppcoreguidelines-init-variables fixes bool variables with '= 0' instead of '= false'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sean-mcmanus
      </td>
    </tr>
</table>

<pre>
    This is an enhancement request, either by default or via a configuration setting.

Repro code is

```
int main()
{
bool b;
return 0;
}
```

See https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-init-variables.html .

Workaround: Re-running clang-tidy after this causes the https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html warning to appear, which can be used to fix it.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUttu2zAM_Rr5hXCgyHGdPPihXdAP6AbsmZZpW6ssZbok7b5-tJvegAF9mEHIvEjk4SE73z-3PyYTgQUdkJvQaZrJJQj0O1NMQn0DMmmiAN0z9DRgtgl8gLNBQNDeDWbMAZPxDiKlZNy4EfIo5O3L-UCn4PleT1zkY0DcyKuspuGaMxon1F6ow_VKc_eidN5b6ER1NQOlHBzIN4dojv9M-nJ-J4IppVMU1a1Q9yzaIsO09jxvfBjZQU8p4GugTKZ_XoyJ9GNclNNJ-0BjNj1Z4yiWxplUnjEY7CzFzZRmC5_a_unDIwafXc9F4YHKkJ1jbuC9AuCQmNa08K8xR4qs_yfSmXkOzvyhkvOVC22lNVwF7RXkBcMKI3nA04kwLAO-TEZPjMFBR8AP-yU8mCcw6dpU0bdVf6gOWCSTLLUfulhrw1cULen4XAf57rzwZoFQjaiOPE3VgHExEfbgh1f3wNCJ9SIH237mZuTXudtoP7OxUHT9lbxxv0jz7t6bGHmLWalrKZtiamstD1U1KDo0g2pudvKGv7oiJZu6qagqLHZkYyvqO1EfC9MqqZTcqa2UtdzKjd7rbTXIoVdDp_b7rdhJ4rW1byMqQrti6PIYOWhNTPE9iDGa0RG95secJh_aSOjKWc_ocixWzO0K-C9y3is9">