]> granicus.if.org Git - clang/commit
Teach -Wuninitialized to recognize common "noreturn" idioms in
authorTed Kremenek <kremenek@apple.com>
Thu, 13 Sep 2012 00:21:35 +0000 (00:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 13 Sep 2012 00:21:35 +0000 (00:21 +0000)
commit25c1d57fc906e895535fb5c7e6dde80219f353b5
tree4990d9c63ff9a9da198c1c082613759f8de862d9
parent4ef19205b6912316296db74a9073ad6fa60e4cca
Teach -Wuninitialized to recognize common "noreturn" idioms in
Objective-C related to NSException.

Fixes <rdar://problem/12287498>

I debated whether or not this logic should be sunk into the CFG
itself.  It's not clear if we should, as different analyses may
wish to have different policies.  We can re-evaluate this in the
future.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163760 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp
test/SemaObjC/uninit-variables.m