]> granicus.if.org Git - clang/commit
[analyzer] Check for +raise:format: on subclasses of NSException as well.
authorJordan Rose <jordan_rose@apple.com>
Fri, 22 Jun 2012 17:15:58 +0000 (17:15 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 22 Jun 2012 17:15:58 +0000 (17:15 +0000)
commit6c234b1fd1da64a14a77433cb805cb1aa798512a
treebd1a712205ef45772a3e36837403f28eb5e1bc1e
parent0da4414f3d30c34fafb81b13b2cec3680c0bc9e1
[analyzer] Check for +raise:format: on subclasses of NSException as well.

We don't handle exceptions yet, so we treat them as sinks. ExprEngine
hardcodes messages that are known to raise Objective-C exceptions like -raise,
but it was only checking for +raise:format: and +raise:format:arguments: on
NSException itself, not subclasses.

<rdar://problem/11724201>

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