llvm-toolchain-9/clang/bindings/python
Lu zhiping c7c238d5f4 Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
..
clang Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
examples/cindex Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
tests Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
README.txt Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00

README.txt

//===----------------------------------------------------------------------===//
// Clang Python Bindings
//===----------------------------------------------------------------------===//

This directory implements Python bindings for Clang.

You may need to set CLANG_LIBRARY_PATH so that the Clang library can be
found. The unit tests are designed to be run with any standard test
runner. For example:
--
$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
      CLANG_LIBRARY_PATH=$(llvm-config --libdir) \
  python -m unittest discover -v
tests.cindex.test_index.test_create ... ok
...

OK
--