Do we really want to add XML-specific conversion code to libclang itself?<div><br></div><div>I feel like this should be in a separate library.<br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 9:34 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The attached patch implements a libclang API for comment-to-xml<br>
conversion.  The implementation also includes a Relax NG schema and<br>
tests for the schema itself.  The schema is used in c-index-test to<br>
verify that XML documents we produce are valid.  In order to do the<br>
validation, we add an optional libxml2 dependency for c-index-test.<br>
<br>
I am not sure that test/Index/Inputs/CommentXML is the best place to<br>
put the XML schema.  Any suggestions?<br>
<br>
Current implementation of declaration name printer is not perfect --<br>
it prints 'operator _Bool' for C++ 'operator bool()', for example.<br>
But this can be fixed in a followup together with a complete<br>
declaration printer.<br>
<br>
Credits for CMake part go to Doug Gregor.  Credits for Autoconf part<br>
go to Eric Christopher.  Thanks!<br>
<br>
Please review.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>João Matos<br>
</div>