]> granicus.if.org Git - clang/commit
[analyzer] Handle another Android assert function.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 30 Dec 2015 00:08:59 +0000 (00:08 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 30 Dec 2015 00:08:59 +0000 (00:08 +0000)
commitae24817fc435d83180af92d4b389dba123e2091c
tree98f01ded7e95cc75115cd5953054bbac5110004f
parenta5b27b8fe57e8a60e56c1edfaa8a2f37c51e3a6c
[analyzer] Handle another Android assert function.

Android's assert can call both the __assert and __assert2 functions under the cover, but
the NoReturnFunctionChecker does not handle the latter. This commit fixes that.

A patch by Yury Gribov!

Differential Revision: http://reviews.llvm.org/D15810

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
test/Analysis/NoReturn.m