[PATCH] extra libclang functionality for the xdress project

Geoffrey Irving irving at naml.us
Sun Nov 3 17:46:30 PST 2013


Here are four patches improving libclang in various ways for use in
xdress (http://xdress.org).  In order, they add

1. Python support for clang_formatDiagnostic.
2. Access to public / private / protected specifiers.
3. Template argument access (as new cursor types).
4. A clang_Cursor_getDefaultArgument function.

They've all been tested inside xdress, but the patches themselves do
not include tests.  Since questions about this stuff to cfe-dev were
ignored, I want to make sure these patches will be looked at before I
do potentially unnecessary work.

Caveat: llvm trunk does not build for me due to these errors:

    llvm-build: error: invalid native target: 'x86_64' (not in project)

Therefore, these patches were written, built, and tested again
release_33 plus several cherry-picked libclang commits.  It's possible
they don't compile against the trunk.

Any ideas what would have caused this build breakage since release_33?

Thanks,
Geoffrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libclang-python-Expose-clang_formatDiagnostic-to-pyt.patch
Type: text/x-patch
Size: 1366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131103/8f97db4f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libclang-python-Expose-access-specifiers-public-priv.patch
Type: text/x-patch
Size: 2524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131103/8f97db4f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-libclang-Add-template-argument-support.patch
Type: text/x-patch
Size: 14018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131103/8f97db4f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-libclang-Add-clang_Cursor_getDefaultArgument.patch
Type: text/x-patch
Size: 4324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131103/8f97db4f/attachment-0003.bin>


More information about the cfe-commits mailing list