I am currently working on to avoid false positives which currently occur as the return values of mutex functions like pthread_mutex_destroy() are not taken into consideration.
The precise description of the bug can be found here: https://bugs.llvm.org/show_bug.cgi?id=32455
Dr. Devin and Dr. Artem have been guiding me to fix PthreadLockChecker to avoid such false positives. The patch I'm attaching is not 100% correct and hence I need your advice to proceed further.
Thank you.
You don't need to include <iostream even for your own debugging, because we have this other facility:
(yeah, you can put SVal and some other objects into llvm::errs() directly (which would be equivalent to .dump()ing them), which is also handy).