
On 10/19/09 15:54, Pierre Morcello wrote:
From : Jeffrey Bosboom While annotation processors are not allowed to modify the original source files, they are allowed to generate new files that get passed to the compiler
[snip]
Concerning automatic reflection system, I know 2 possibilities to access the name of some classes and methods and their quality (without doing a C++ parser). The first one is to use doxygen directly to generate xml to parse. It produces lots of errors but may be enough for simple uses. There is also visual studio which can ouput xml (it's huge!). I never used the visual studio system though (I mean for reflection). But in both case it's possible to use it (to generate new C++ files, or to feed the program directly). I just say that because it may help.
Concerning C++ parsing, I suppose that it is a beautiful wish, but as long as nobody propose a good interface to extract the data out of a bunch of C++ files + configuration generation (including classes, typedef, templates, but also commentaries, pragma, spaces, etc... for code refactoring), then it won't be possible to propose any good implementation. First it needs a tremendous work for specifying a complete convincing C++ interface, then only the implementation might be done. [snip]
The Texas A&M Profit project *may* be relevant. I've just looked at: http://parasol.tamu.edu/pivot/index.html and it seems to be somewhat related. -regards, Larry