]> granicus.if.org Git - clang/commit
[-Wunreachable-code] Treat constant globals as configuration values in unreachable...
authorTed Kremenek <kremenek@apple.com>
Fri, 7 Mar 2014 20:51:13 +0000 (20:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 7 Mar 2014 20:51:13 +0000 (20:51 +0000)
commitcccfdc452b63e64f1e838833c7f055d832559b0d
treedeec8abeedf64a44ab9d3bed79995bb8e5aa9849
parent24ceb7637bd845c732aacfc07378b5c5484cc86f
[-Wunreachable-code] Treat constant globals as configuration values in unreachable code heuristics.

This one could possibly be refined even further; e.g. looking
at the initializer and see if it is truly a configuration value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ReachableCode.cpp
test/SemaCXX/warn-unreachable.cpp