multiple .C files in SourceManager

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?

Cheers,
Bas

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
units.

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

Cheers,
/Manuel