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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] `readability-braces-around-statements` not detected `else containing if` without braces
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          GINN-Imp
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/3TKjKen34
```c
int a,b,c;
int main(){
    if(a){
        c=1;
    }
    else //The expected warning position
        if(b){ c = 0; }

 return 0;
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUttu3CAQ_ZrxC_IKg-3FD37IZuUqipSn_AC3tYkwrGCcdPv1lS9V0yIk4GjmzMw5yJzdGKztoblAcy3kglNM_Y-Xt7fyZb4XKppHPyHeM_AnYAOwYYxGRY-nmEZgwy9gA39__Xi1gddAn6Cl-9ZAn1xAIoE9K2DPGvjlgGbpAjABrIPzihFCiLsBE_IfaF0a-LXaM9cnnK_Hzfpsyd7Q-2SJ_Xm3Gq0hXzIFF0Zyj9mhi-Eb11ZC7SWIJsCvhAK_HKRrYLK4pLChK7LjfwYqTM9NxztZ2L46111dC1a1xdSLSmshtdLUCsMrUVHFFZetukmhdVMXrmeUNbSlHW0aWrUnKY04c6FYpxt-UxRqamfp_Mn7z3kVtnA5L7avas5rUXiprM-bRYxpL8NYojMPYGy1LPVrVqmWMUNNvcuY__KgQ7-Z-y2tuRJoabLSSOW8w0epktQ2lzLFJZgyo0Q724AZWkpCRGIs7upCSzfhdQwo3Sa0u61RXw6nuCDZmYol-f9_jcNpUScdZ2DD2t5xlPcUP6xGYMM2cwY2HGN_9ux3AAAA__8_DcbS">