]> granicus.if.org Git - clang/commit
UnreachableCodeChecker cleanup and improvements
authorTom Care <tom.care@uqconnect.edu.au>
Wed, 6 Oct 2010 23:02:25 +0000 (23:02 +0000)
committerTom Care <tom.care@uqconnect.edu.au>
Wed, 6 Oct 2010 23:02:25 +0000 (23:02 +0000)
commit4895b9cf34b26b20e674a88fa8104489e1d06812
tree941a0b0b8ea2cc01f9a07a129ac0a55ac5a007af
parentdf9fb9150e9ffb4660fb02ccea1480713fb8e0fb
UnreachableCodeChecker cleanup and improvements
- Fixed some iterator style issues
- Don't process blocks that have been visited already
- Fixed a case where a unreachable block cycle was not reported
- Minor test case changes
- Added one test case from flow-sensitive version of the check. More coming.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115861 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/UnreachableCodeChecker.cpp
test/Analysis/unreachable-code-path.c