clang-1/bindings
Tobias Grosser 11d6cd318d cindex.py: Handle NULL pointers when parsing translation units
The code inside cindex.py was comparing NULL pointer returned by
clang_parseTranslationUnit and clang_createTranslationUnit with None.
However, as illustrated by the two tests I've added, those conditions
were ineffective which resulted in assert triggering later on.

Instead, a pointer is now treated as a boolean value, a NULL pointer being
False.

Contributed-by: Xavier Deguillard <deguilx@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177408 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-19 15:30:48 +00:00
..
python cindex.py: Handle NULL pointers when parsing translation units 2013-03-19 15:30:48 +00:00
xml doxygen command. Add 'attention' command to list of similar 2013-02-26 22:12:16 +00:00