diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-30 21:51:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-30 21:51:10 +0000 |
commit | f51f20fa34654da75d15a9e2a1a0cd2fc0d8603d (patch) | |
tree | 63a20b5c050d2ac2e985c4579051646b295f929a /bindings | |
parent | 99e8192c4c8f1f596f9969e5f2cdafcee64ddaac (diff) |
Rename 'CIndex' to 'libclang', since it has basically become our stable public
(C) API, and will likely grow further in this direction in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/README.txt | 5 | ||||
-rw-r--r-- | bindings/python/clang/cindex.py | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/bindings/python/README.txt b/bindings/python/README.txt index ccc2619ccf..742cf8fbb8 100644 --- a/bindings/python/README.txt +++ b/bindings/python/README.txt @@ -2,10 +2,9 @@ // Clang Python Bindings //===----------------------------------------------------------------------===// -This directory implements Python bindings for Clang. Currently, only bindings -for the CIndex C API exist. +This directory implements Python bindings for Clang. -You may need to alter LD_LIBRARY_PATH so that the CIndex library can be +You may need to alter LD_LIBRARY_PATH so that the Clang library can be found. The unit tests are designed to be run with 'nosetests'. For example: -- $ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \ diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index f4409aec33..f0f81b5d69 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -71,11 +71,11 @@ def get_cindex_library(): import platform name = platform.system() if name == 'Darwin': - return cdll.LoadLibrary('libCIndex.dylib') + return cdll.LoadLibrary('libclang.dylib') elif name == 'Windows': - return cdll.LoadLibrary('libCIndex.dll') + return cdll.LoadLibrary('libclang.dll') else: - return cdll.LoadLibrary('libCIndex.so') + return cdll.LoadLibrary('libclang.so') # ctypes doesn't implicitly convert c_void_p to the appropriate wrapper # object. This is a problem, because it means that from_parameter will see an |