<div>As the subject says: Is it possible to build one translation-unit out of multiple source-files?</div><div>I copied the source to create a compilerinstance from </div><div><a href="https://github.com/gwaredd/reflector/blob/master/src/Reflector.cpp">https://github.com/gwaredd/reflector/blob/master/src/Reflector.cpp</a></div>
<div>For every inputfile, the FileManager, SourceManager, Preprocessor, ASTContext and</div><div>Sema will be recreated. Thus, every sourcefile ends up in it's own TranslationUnit.</div><div>I am aware of the possibility to simply include all given sourcefiles inside a temporary </div>
<div>sourcefile - it works, but it feels 'hacky'. </div><div>Any suggestions?</div><div><br></div><div>- Hendrik</div>