[cfe-dev] Clang and XML output

Douglas Gregor dgregor at apple.com
Mon Aug 23 07:11:17 PDT 2010


On Aug 22, 2010, at 7:54 AM, Matthieu Dubet wrote:

> Hi,
> 
> I'm developing a small C / C++ / ObjC IDE and I plan to use Clang "behind the wall" for all the highlighting, completion and semantic stuff about the code .

I suggest looking at libclang: http://clang.llvm.org/doxygen/group__CINDEX.html

> I know Clang has an -as-xml-output option, but the generated XML is far too complicated to be used as is, and I was wondering if there is some function I'm not aware about, producing XML (or any markup language) more like this tool ( http://42ndart.org/scalpel/demonstration.html ).

XML is the wrong tool for the job. Just formatting and then re-parsing all of the data you would need for these tasks would take more time than you have within the UI.

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100823/d9d8af9a/attachment.html>


More information about the cfe-dev mailing list