[PATCH][Review request] Add PrintingPolicy option to suppress implicit casts for pretty printing
Dmitri Gribenko
gribozavr at gmail.com
Sat May 4 19:26:19 PDT 2013
On Fri, May 3, 2013 at 8:07 PM, Joe Sprowes <sprowes at silkan.com> wrote:
> This patch allows suppression of implicit cast when pretty printing the AST.
> For example:
>
> i = a.operator int();
I'd prefer not to add yet another flag to the printing policy.
Unfortunately, skipping printing conversion operators changes CFG dump
output, which I am not familiar with.
Jordan, could you please take a look at the attached patch?
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dont-print-conv-operator-v1.patch
Type: application/octet-stream
Size: 16097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130505/1985c0cd/attachment.obj>
More information about the cfe-commits
mailing list