aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-02-27 21:56:47 +0000
committerTed Kremenek <kremenek@apple.com>2014-02-27 21:56:47 +0000
commit08da97819a87df1ba5b5596bfaafbdcb7cf041e9 (patch)
treea5a0afb9caa594b1ada843032561a00ae36238fc /clang/lib/Basic/FileSystemStatCache.cpp
parent9238c5c878c066fe46bd63ddbf4daf1a5e4f99bc (diff)
downloadllvm-08da97819a87df1ba5b5596bfaafbdcb7cf041e9.zip
llvm-08da97819a87df1ba5b5596bfaafbdcb7cf041e9.tar.gz
llvm-08da97819a87df1ba5b5596bfaafbdcb7cf041e9.tar.bz2
[-Wunreachable-code] always treat 'case:' and 'default:' cases as reachable.
This is a heuristic. Many switch statements, although they look covered over an enum, may actually handle at runtime more values than in the enum. This is overly conservative, as there are some cases that clearly can be ruled as being clearly unreachable, e.g. 'switch (42) { case 1: ... }'. We can refine this later. llvm-svn: 202436
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions