felipeprov / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

Separate the driver from the code #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to consume iwyu as a library instead of as an exe, which lets me 
easily plug it into my existing clang frontend framework. 

- change iwyu to produce a lib
- move main() into a new build target that produces an exe?
- expose an API for CreateASTConsumer that I can call with the compiler instance

Original issue reported on code.google.com by bigwal...@gmail.com on 6 Jan 2015 at 8:11

GoogleCodeExporter commented 8 years ago
I'm not sure this would be meaningful, but I haven't thought about it much.

How would you consume the results of an IWYU library? It currently just dumps 
its output to stderr, and you'd have to design some other output mechanism.

This, to me, doesn't sound like a priority, but patches might convince me 
otherwise :-)

Original comment by kim.gras...@gmail.com on 7 Jan 2015 at 8:12