Experiment with making -Wunreachable-code more immediately useful by restricting...
authorTed Kremenek <kremenek@apple.com>
Tue, 18 Feb 2014 22:12:10 +0000 (22:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 18 Feb 2014 22:12:10 +0000 (22:12 +0000)
commit5b2c210e653192c3bf6e39690c087853c356b415
tree0f7536bcea6936afd4ae5e95800417c4b7caa662
parentea09c595a640e7b2892808a8e5453dffc43a194a
Experiment with making -Wunreachable-code more immediately useful by restricting warnings to those issued in the main file.

This warning has a whole bunch of known false positives, much of them due
to code that is "sometimes unreachable".  This can caused by code that
is conditionally generated by the preprocessor, branches that are defined
in terms of architecture-specific details (e.g., the size of a type), and
so on.  While these are all good things to address one by one, the reality
is that this warning has received little love lately.  By restricting
its purvue, we can focus on the top issues effecting main files, which
should be smaller, and then gradually widen the scope.

llvm-svn: 201607
clang/lib/Sema/AnalysisBasedWarnings.cpp