Afficher un message
Vieux 30/06/2008, 17h57   #2
Jerry Coffin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Tool to delete unneeded methods/enums, etc.

In article <62e3029a-2655-4b63-9511-d561acba7a89@
34g2000hsh.googlegroups.com>, julekmen@go2.pl says...
> Hi,
> is there a tool which parses cpp and h files, finds unused things, and
> deletes them from code?


Yes. It's called an "optimizing compiler". :-)

> For example unused methods, enums, enum
> values, defines... It doesn't have to be sophisticated (it doesn't
> have to check, that ClassA::funX is used somewhere, but ClassB::funX
> is not used anywhere, so we can delete only ClassB::funX).


Realistically, getting something like this to work correctly would be
quite difficult -- little short of a full-blown compiler could really do
the job correctly.

--
Later,
Jerry.

The universe is a figment of its own imagination.
  Réponse avec citation
 
Page generated in 0,06856 seconds with 9 queries