[cfe-dev] multiple .C files in SourceManager

Manuel Klimek klimek at google.com
Wed Feb 27 12:23:19 PST 2013

On Wed, Feb 27, 2013 at 9:04 PM, Bas van den Berg <
b.van.den.berg.nl at gmail.com> wrote:

> I've looked at the SourceManager class, but it has a strong use of
> the 'MainFile' concept, whereas I would need several files, some of
> which are .c files (which are main files and need builtin defines inserted)
> and others are just includes.
> Has anyone tried to do this? Or any ideas?

Usually you'll want to find a different way to key between translation

If you must, you could create one .c file that #include's all the other .c
files you need?


> Cheers,
> Bas
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130227/83c1d1c6/attachment.html>

More information about the cfe-dev mailing list