diff options
| author | Ted Kremenek <kremenek@apple.com> | 2014-02-27 21:56:47 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2014-02-27 21:56:47 +0000 |
| commit | b228a86eb77a50de294c614a8b2724773cdd4389 (patch) | |
| tree | 611bd0a45cd0c9493e0ed9559ac41fa7a4661bbb /lib/Serialization/ModuleManager.cpp | |
| parent | af663ae39c1c5da37303f6f1d956908e12d18716 (diff) | |
| download | clang-b228a86eb77a50de294c614a8b2724773cdd4389.tar.gz clang-b228a86eb77a50de294c614a8b2724773cdd4389.tar.bz2 clang-b228a86eb77a50de294c614a8b2724773cdd4389.tar.xz | |
[-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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions
