Daniel Dunbar | 30c0f26 | 2010-01-24 02:02:07 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // Clang Python Bindings |
| 3 | //===----------------------------------------------------------------------===// |
| 4 | |
| 5 | This directory implements Python bindings for Clang. Currently, only bindings |
| 6 | for the CIndex C API exist. |
| 7 | |
| 8 | You may need to alter LD_LIBRARY_PATH so that the CIndex library can be |
| 9 | found. The unit tests are designed to be run with 'nosetests'. For example: |
| 10 | -- |
| 11 | $ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \ |
| 12 | LD_LIBRARY_PATH=$(llvm-config --libdir) \ |
| 13 | nosetests -v |
| 14 | tests.cindex.test_index.test_create ... ok |
| 15 | ... |
| 16 | |
| 17 | OK |
| 18 | -- |