llvm-project/clang/bindings
Tobias Grosser 14a2d7b9f0 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>
llvm-svn: 177408
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