From kdevelop-devel Fri Jul 01 15:17:23 2005 From: Alexander Neundorf Date: Fri, 01 Jul 2005 15:17:23 +0000 To: kdevelop-devel Subject: Re: probably the best C++ parser... Message-Id: <200507011717.23858.neundorf () kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=112023113032408 On Friday 01 July 2005 17:01, Alexander Neundorf wrote: > ...you can find is gcc, but did you know gccxml > (http://www.gccxml.org/HTML/Index.html) ? It's basically the real gcc, but > it doesn't produce machine instructions, but an xml file describing the > source file. > So you get > -all functions > -all variables > -all parameters for functions > -the locations where the functions are declared (file and line number) > etc. in a machine-readable format. Here's a very simple example: ----------8<-----------8<--------------8<----------- struct EmptyClass {}; int a_function(float f, EmptyClass e) { } int main(void) { return 0; } ----------8<-----------8<--------------8<----------- and the resulting xml: Alex -- Work: alexander.neundorf@jenoptik.com - http://www.jenoptik-los.de Home: neundorf@kde.org - http://www.kde.org alex@neundorf.net - http://www.neundorf.net _______________________________________________ KDevelop-devel mailing list KDevelop-devel@barney.cs.uni-potsdam.de http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel