[cfe-commits] [PATCH] libclang: Exposing more statement, expression and declaration types.
Holtgrewe, Manuel
manuel.holtgrewe at fu-berlin.de
Tue Oct 4 03:17:01 PDT 2011
OK, that really was tedious work ;)
Attached is a patch that now also contains adjustments to the tests.
Furthermore, the Python binding now caches the results of the ctypes calls (I assume the AST is read-only). This gave an enormous speedup in my Python scripts that perform AST traversal using the Python libclang bindings.
Bests,
Manuel
Am 30.09.2011 um 23:36 schrieb Douglas Gregor:
>
> On Sep 30, 2011, at 1:47 PM, Manuel Holtgrewe wrote:
>
>>> The patch looks generally fine, but you'll also need to update the test cases in test/Index (it's tedious, I know).
>>
>> Doug, could you point me in the general direction where I can learn about the clang test system and give some pointers towards the changes you would expect me to make?
>
> Have you run "make test"? It will run the "lit" tool that will run all of Clang's regression tests, and very likely you'll see failures in test/Index where the output of c-index-test has changed. It'll be tedious, but you'll want to inspect the output (to see if it makes sense) and update the tests with the new and improved output.
>
> - Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclang.diff
Type: application/octet-stream
Size: 413320 bytes
Desc: libclang.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111004/96fe5be8/attachment.obj>
More information about the cfe-commits
mailing list