This adresses point 4 from #156680. This is a necessary step before `CompletionChunk.Kind` can be removed. The `ChunkCompletion.Kind` implements `__str__` and `__repr__` differently from our other enum classes. I have adapted the `__repr__` of `CompletionString` to stringify the availability of the chunk differently so that it still looks the same as before. Also introduce a temporary `AvailabilityKindCompat` to ensure that `__str__` returns the same format, while also leaving a deprecation warning that this will be removed in a future release. --------- Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav@gmail.com>
//===----------------------------------------------------------------------===//
// Clang Python Bindings
//===----------------------------------------------------------------------===//
This directory implements Python bindings for Clang.
You may need to set LIBCLANG_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/clang/bindings/python/) \
LIBCLANG_LIBRARY_PATH=$(llvm-config --libdir) \
python3 -m unittest discover -v
tests.cindex.test_index.test_create ... ok
...
OK
--