[cfe-dev] Build one translation-unit out of multiple source-files
Hendrik vP
variadic.template at googlemail.com
Mon Mar 21 03:35:32 PDT 2011
As the subject says: Is it possible to build one translation-unit out of
multiple source-files?
I copied the source to create a compilerinstance from
https://github.com/gwaredd/reflector/blob/master/src/Reflector.cpp
For every inputfile, the FileManager, SourceManager, Preprocessor,
ASTContext and
Sema will be recreated. Thus, every sourcefile ends up in it's own
TranslationUnit.
I am aware of the possibility to simply include all given sourcefiles inside
a temporary
sourcefile - it works, but it feels 'hacky'.
Any suggestions?
- Hendrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110321/4bfec753/attachment.html>
More information about the cfe-dev
mailing list