On 03/19/2013 01:30 AM, Xavier Deguillard wrote:
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, pointer should be treated as boolean value, a NULL pointer
being False.

Committed in r177408.

Thanks for the nice patch.

Tobi
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to