[cfe-dev] Regarding transformation with clang format

kamlesh kumar via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 18 04:47:23 PDT 2019

Hi all,

Consider below case
$cat test.c
bool foo=false;
if(foo == false)
and with clang-format tool we would like to transform it into
bool foo = false;
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.

is this doable with clang-format?

Incase  if this transformation can not be done by clang-format ,
can clang-format be extended to atleast error it out when cases like this
are detected?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190418/a421af45/attachment.html>

More information about the cfe-dev mailing list