]> granicus.if.org Git - clang/commit
[cindex.py] Make the use of a compatibilty check explicit
authorTobias Grosser <grosser@fim.uni-passau.de>
Wed, 5 Sep 2012 20:23:53 +0000 (20:23 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Wed, 5 Sep 2012 20:23:53 +0000 (20:23 +0000)
commit857134ed8412eab7aeb95c56eb8ddcd29c10c612
treead4f373a889002f7c72319c79c8cc5288ddd20d7
parentfd0f11ccd51154e933fad7dfa134cb4f62c87056
[cindex.py] Make the use of a compatibilty check explicit

At the moment, we implictly check compatibility between the python
bindings and libclang, as the python bindings will fail to load in
case a method we use in libclang is not available.

This patch makes the use of this compatibility check explicit and introduces a
flag to optionally disable the check. This will allow us to further harden the
compatibility check, but it also gives the user the possibility to disable the
compatibility check to evaluate compatibility with older libclang versions.

I added documentation that makes clear the python bindings are only tested
with the libclang version they have been shipped with.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163238 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/cindex.py