Re: How not to preprocess system headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 September 2011 08:38, seigneur wrote:
>
> Hi,
>
> Is there a way to skip the preprocessing of system headers and extern
> library headers when compiling with gcc ?
>
> I have a very specific use of gcc, where I batch thousand of C or C++ files,
> only dumping the AST generated. I do not link my .o files, and I do not want
> to install the numerous libraries called by all the source files...
> What I'd like to do is preprocessing custom header files (which I have), but
> none of the other header files...
>
> Is it possible ?

It would be difficult to dump an AST for std::cout << "Hello, world!"
<< std::endl; without parsing <iostream>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux