[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
Consider below case
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev