[cfe-dev] Borland-style PCHs in clang
Sebastian Redl
sebastian.redl at getdesigned.at
Tue Sep 28 20:18:33 PDT 2010
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