From gccxml Mon Jan 06 14:17:46 2003
From: Philippe FREMY
Date: Mon, 06 Jan 2003 14:17:46 +0000
To: gccxml
Subject: [GCC-XML]C++ refactorer tool ?
Message-Id: <191CBBF91062D411855D00D0B76F1C30010F3440 () PROXIMA>
X-MARC-Message: https://marc.info/?l=gccxml&m=119419286724307
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