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

    <tr>
        <th>Summary</th>
        <td>
            Missing warning for bool conversion from pointer
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          mkbosmans
      </td>
    </tr>
</table>

<pre>
    When compiling the code
```
#include<stdbool.h>

void getBool(bool out);
void getInt(int out);

void test(bool *b, int* i);
void test(bool *b, int* i) {
  getBool(b);
  getInt(i);
}
```
with `clang -std=c99 -Weverything -c bool_pointer_warning.c`, I get a warning about the pointer argument of getInt, but not about the pointer argument of getBool.

I guess that is because a pointer is implicitly converted to a boolean, but it would be nice to be able to ask to be warned about the forgotten pointer dereference here.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEk82OqzgQhZ_GbEpBjkkILFikk4nUi1n3suWfAjxt7MguEvXbj8yQnvS9V2opCmCfOv7qlCxTsoNH7Nj-he3PhZxpDLGbPlRIk_SpUMF8dm8jetBhulpn_QA0IuhgkPEz40dW8_X336eorNduNsiqUyKjQnDlyKq_1u3l_xasgQHpJQTHRJM1EGZiomXVy3fJqycmGuvpV8GTjDDRw4aJo2LiBDbXHcH-5vmDGNhhVcMz4bMNPHF9Izqc_xjJ3dIIrObaST_AJpFh1Vm3LWze8Ibxk8ac6kZDZnq_BusJ4_tdRm_9UOrsI07wmk8FCes6SBVmWmaxVoCMwzxhTqr_IjyBmgl8oJ_1udXyOdtXGGZMCWiUBDaBQi3nhCC_HGwCO12d1ZbcJ-jgbxgJDVAAuXSD0j8YLME9zM6AQvBWYxYpBKnc8irTx7qSG0TzxNuHOAQi9F_nGozYY0SvEUaMWBamq0xbtbLAblu39b457ERTjN2O82Yn9vtGHVD0u9q0UuhG7fVe1E3LeWE7wUW15bze8u2BN-UBq96Ietsr1FuJku04TtK60rnbVIY4FDalGbu62fFt4aRCl5brI4THOyybTIh8m2KXazZqHhLbcWcTpf9dyJLD7m-bUp7mY6p9iEtwa5jJBg99DNOj9WKOrhuJrolVRyYuTFwGS-OsSh0mJi7Zfn1srjH8g5qYuCxQiYnLAv1vAAAA___rm0Lp">