2010-01-24 10:02:07 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Clang Python Bindings
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2010-05-01 05:51:10 +08:00
|
|
|
This directory implements Python bindings for Clang.
|
2010-01-24 10:02:07 +08:00
|
|
|
|
2010-05-01 05:51:10 +08:00
|
|
|
You may need to alter LD_LIBRARY_PATH so that the Clang library can be
|
2017-11-11 00:44:12 +08:00
|
|
|
found. The unit tests are designed to be run with any standard test
|
|
|
|
runner. For example:
|
2010-01-24 10:02:07 +08:00
|
|
|
--
|
|
|
|
$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
|
|
|
|
LD_LIBRARY_PATH=$(llvm-config --libdir) \
|
2017-11-11 00:44:12 +08:00
|
|
|
python -m unittest discover -v
|
2010-01-24 10:02:07 +08:00
|
|
|
tests.cindex.test_index.test_create ... ok
|
|
|
|
...
|
|
|
|
|
|
|
|
OK
|
|
|
|
--
|