[cfe-dev] Clang AST bug?

Dmitri Gribenko gribozavr at gmail.com
Sun Feb 2 11:35:58 PST 2014


On Sun, Feb 2, 2014 at 6:25 PM, Saoni Mukherjee
<sayani.mookherjee at gmail.com> wrote:
> I have installed Clang using the description mentioned on the website. All
> seemed okay. Now when I try to generate the AST from a C source file, I get
> the source code back. In other words, if I enter
> clang -cc1 -ast-print <file>.c

Hello Saoni,

Please try 'clang -cc1 -ast-dump'.

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>*/



More information about the cfe-dev mailing list