llvm-project/clang/bindings/python
Michal Gorny 3495440e45 [python] [tests] Fix test_linkage for unique external linkage
Starting with r314037, anonymous namespaces no longer give
unique-external linkage to variables. However, this linkage can still be
achieved by using a type which is not exterally visible,
e.g. through being declared in an anonymous namespace but used outside
it. Fix the test to take advantage of that.

Differential Revision: https://reviews.llvm.org/D39810

llvm-svn: 317986
2017-11-11 20:01:41 +00:00
..
clang Reverting r316278 due to failing build bots. 2017-10-21 21:52:48 +00:00
examples/cindex cindex-dump.py: fix the --show-ids description string 2014-05-05 04:42:26 +00:00
tests [python] [tests] Fix test_linkage for unique external linkage 2017-11-11 20:01:41 +00:00
README.txt [python] [tests] Rewrite to use standard unittest module 2017-11-10 16:44:12 +00:00

README.txt

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

This directory implements Python bindings for Clang.

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 any standard test
runner. For example:
--
$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
      LD_LIBRARY_PATH=$(llvm-config --libdir) \
  python -m unittest discover -v
tests.cindex.test_index.test_create ... ok
...

OK
--