[cfe-dev] automatic include

Sebastian Redl sebastian.redl at getdesigned.at
Wed Jan 21 09:43:16 PST 2009


VanDung To wrote:
> Hello,
>
> I'm not sure if there's a way in clang to do this, however, I'd like
> to automatically include a header file every time I compiles a
> program.  What would be the best way to do this?  Can I do this
> externally to the compiler or do I need to modify the compiler.
See the -include option.
>
> Also, I'd like to have my header files precompiled. Where can I find
> the documentation on how to do this. 
>
We don't yet have support for real pre-compiled headers. Support for
pre-tokenized headers is in development and, from what I've seen,
usable, but probably not production-quality (but then, Clang as a whole
isn't there yet).

Sebastian



More information about the cfe-dev mailing list