[cfe-commits] [PATCH] libclang API for comment-to-xml conversion

Dmitri Gribenko gribozavr at gmail.com
Fri Aug 3 13:34:49 PDT 2012


The attached patch implements a libclang API for comment-to-xml
conversion.  The implementation also includes a Relax NG schema and
tests for the schema itself.  The schema is used in c-index-test to
verify that XML documents we produce are valid.  In order to do the
validation, we add an optional libxml2 dependency for c-index-test.

I am not sure that test/Index/Inputs/CommentXML is the best place to
put the XML schema.  Any suggestions?

Current implementation of declaration name printer is not perfect --
it prints 'operator _Bool' for C++ 'operator bool()', for example.
But this can be fixed in a followup together with a complete
declaration printer.

Credits for CMake part go to Doug Gregor.  Credits for Autoconf part
go to Eric Christopher.  Thanks!

Please review.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comment-to-xml-v1.patch
Type: application/octet-stream
Size: 93897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120803/47fb3c10/attachment.obj>

More information about the cfe-commits mailing list