API function to get file dependencies of compilation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

API function to get file dependencies of compilation

Hans Wennborg via cfe-dev
Hi all,

Is there a relatively easy way to get the dependencies (files) for a call to clang from its internals.

I know I can probably rewrite the rags and add -MD, then parse and remove the temporary output but I figure there might be an internal function which would be much easier.

Cheers,
Billy Moses

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev