[LLVMdev] how to get -ast-print to work?

Sebastian Redl sebastian.redl at getdesigned.at
Wed Feb 3 06:41:58 PST 2010

On Wed, 03 Feb 2010 09:13:51 -0400, Marko Sch├╝tz <MarkoSchuetz at web.de>
> I have clang from 2010-01-22 installed. 

First off, Clang questions should go to cfe-dev.

> I'm interested in using the AST, but:
> marko at prpad:tmp% clang -cc1 col.c -ast-print
> gcc: unrecognized option '-cc1'

Why is gcc interpreting command line arguments for clang? Do you have an
alias or symlink somewhere?

% which clang
% file `which clang`


More information about the llvm-dev mailing list