[cfe-dev] how to do an AST-dump of a cpp file

Nikola Smiljanic popizdeh at gmail.com
Wed Jul 3 04:04:50 PDT 2013


I think that Clang needs to be able to parse your code in order to
build the AST, which it won't be able to do without the headers. I
might be wrong though.

On Wed, Jul 3, 2013 at 6:40 PM, Kang Hu <hukangustc at gmail.com> wrote:
>
>
> when i dump the AST of a cpp file using clang,
> i get the AST of the preprocessed cpp file, which can be huge.
> so i'd like to know if clang has an option to disable dump
> AST of the included header files.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list