[cfe-dev] Clang beginner - how to parse multiple files?

Douglas Gregor dgregor at apple.com
Thu Apr 5 10:29:10 PDT 2012

On Apr 5, 2012, at 7:04 AM, Yaakov Davis <yaakov.davis at gmail.com> wrote:

> I have a program which is composed of multiple .h and .cpp files.
> I tried adding all the .cpp files by calling createMainFileID multiple times, but got an exception saying that the main file has already been defined.

You need to parse different .cpp files with different instances of the compiler.

	- Doug

More information about the cfe-dev mailing list