1 | //===----------------------------------------------------------------------===// |
2 | // Clang Python Bindings |
3 | //===----------------------------------------------------------------------===// |
4 | |
5 | This directory implements Python bindings for Clang. |
6 | |
7 | You may need to set CLANG_LIBRARY_PATH so that the Clang library can be |
8 | found. The unit tests are designed to be run with any standard test |
9 | runner. For example: |
10 | -- |
11 | $ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \ |
12 | CLANG_LIBRARY_PATH=$(llvm-config --libdir) \ |
13 | python -m unittest discover -v |
14 | tests.cindex.test_index.test_create ... ok |
15 | ... |
16 | |
17 | OK |
18 | -- |
19 | |