blob: ccc2619ccf5b752351723f552ac0d74f52277fae [file] [log] [blame]
Daniel Dunbar30c0f262010-01-24 02:02:07 +00001//===----------------------------------------------------------------------===//
2// Clang Python Bindings
3//===----------------------------------------------------------------------===//
4
5This directory implements Python bindings for Clang. Currently, only bindings
6for the CIndex C API exist.
7
8You may need to alter LD_LIBRARY_PATH so that the CIndex library can be
9found. 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
14tests.cindex.test_index.test_create ... ok
15...
16
17OK
18--