<div dir="ltr">Hi all,<div><br><div>Consider below case</div><div>$cat test.c</div><div>bool foo=false;</div><div>if(foo == false)</div><div>{}</div><div>and with clang-format tool we would like to transform it into</div><div>---------</div><div>bool foo = false;</div><div>if(foo)</div><div>{}</div><div>------------</div><div>There are other cases  where we want  transformation like, ternary operator into if else, do not want use keywords like continue,goto ,and do not want recursive calls with unknown depth etc.</div><div><br></div><div>is this doable with clang-format?</div><div><br></div><div>Incase  if this transformation can not be done by clang-format ,</div><div>can clang-format be extended to atleast error it out when cases like this are detected?</div><div><br></div><div>./Kamlesh</div></div></div>