On Sat, Nov 07, 2009 at 11:12:06PM +0100, Alex Fernandez wrote:
> On Sat, Nov 7, 2009 at 8:19 PM, Steve Litt <sl...@troubleshooters.com> wrote:
> > I'm wondering if there's a less compute intensive method than the brute 
> > force
> > method of removing a #include from a .h, and then recompiling every .cpp 
> > file.
> 
> I thought about semantic processing: read all the prototypes in the
> .h, then see if they are actually used in the .cpp files. Remove those
> which aren't and try compiling; if the job has been well done then
> compilation should proceed without a hitch.
> 
> Depending on how convoluted the LyX code actually is (things like
> #defines might screw any semantic processing) it might work reasonably
> well.

It looks like a job for a somewhat more generic enviroment like an IDE
that already has a preprocessor or "model" of the code than for an
application specific script...

Andre'

Reply via email to