<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 22, 2010, at 7:54 AM, Matthieu Dubet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><br></div><div>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 .</div></blockquote><div><br></div><div>I suggest looking at libclang: <a href="http://clang.llvm.org/doxygen/group__CINDEX.html">http://clang.llvm.org/doxygen/group__CINDEX.html</a></div><br><blockquote type="cite"><div>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 ( <a href="http://42ndart.org/scalpel/demonstration.html">http://42ndart.org/scalpel/demonstration.html</a> ).</div>
</blockquote><br></div><div>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.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Doug</div><br></body></html>