public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How not to preprocess system headers
@ 2011-09-13  7:38 seigneur
  2011-09-13  7:59 ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: seigneur @ 2011-09-13  7:38 UTC (permalink / raw)
  To: gcc-help


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 ?

Thanks a lot,
-- 
View this message in context: http://old.nabble.com/How-not-to-preprocess-system-headers-tp32453674p32453674.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How not to preprocess system headers
  2011-09-13  7:38 How not to preprocess system headers seigneur
@ 2011-09-13  7:59 ` Jonathan Wakely
  2011-09-13  9:41   ` seigneur
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2011-09-13  7:59 UTC (permalink / raw)
  To: seigneur; +Cc: gcc-help

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How not to preprocess system headers
  2011-09-13  7:59 ` Jonathan Wakely
@ 2011-09-13  9:41   ` seigneur
  0 siblings, 0 replies; 3+ messages in thread
From: seigneur @ 2011-09-13  9:41 UTC (permalink / raw)
  To: gcc-help


Well, you're right...
Maybe one can only skip extern libraries ?



Jonathan Wakely-4 wrote:
> 
> 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>
> 
> 

-- 
View this message in context: http://old.nabble.com/How-not-to-preprocess-system-headers-tp32453674p32454320.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-13  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13  7:38 How not to preprocess system headers seigneur
2011-09-13  7:59 ` Jonathan Wakely
2011-09-13  9:41   ` seigneur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).