[GCC-XML]C++ refactorer tool ?

Philippe FREMY P.FREMY at OBERTHURCS.com
Mon Jan 6 09:17:46 EST 2003


	Hi,

I have the idea floating around of a C++ refactorer tool. Would gcc-xml be
suitable for that ?

The constraint for a refactorer tool is that the must know all the
structures defined by the program (class, functions, methods, variables,
structures, arguments, ...) and more importantely where they are defined in
the source (file, line, column).

After that, the tool is more or less a walker. Once all the references to,
let's say a method have been found, renaming it is quite simple.

I also have in mind a kind of report tool that would try to estimate the
complexity of a program, by counting the number of classes, average number
of methods per classes and stuff like that. For this one, it seems that
gcc-xml is the perfect tool, isn't it ?

	regards,

	Philippe



More information about the gccxml mailing list