[cfe-dev] Borland-style PCHs in clang

dawn at burble.org dawn at burble.org
Wed Sep 29 00:12:35 PDT 2010


Sounds great.  What's your "preamble support"??
May be you can point me to some code in clang that I can poke around
in??

-Dawn

On Tue, Sep 28, 2010 at 08:18:33PM -0700, Sebastian Redl wrote:
> 
> On Sep 28, 2010, at 6:35 PM, dawn at burble.org wrote:
> 
> > 
> > I'm trying to figure out the best way to support Borland style PCHs in
> > clang.  Suppose we have headers x.h and y.h and file x.c
> > as follows:
> > 
> >    #include "x.h"
> >    #include "y.h"
> >    #pragma hdrstop // everything above this line goes into the PCH
> > 
> > What's the best way to add this support to clang?
> 
> I think your best bet is to piggy-back on our preamble support. The main difference between that and #pragma hdrstop is that it finds the end of the includes automatically.
> 
> Sebastian



More information about the cfe-dev mailing list