]> granicus.if.org Git - clang/commit
[-Wunreachable-code] Tweak heuristic for configuration values to include arithmetic...
authorTed Kremenek <kremenek@apple.com>
Sat, 8 Mar 2014 23:20:11 +0000 (23:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 8 Mar 2014 23:20:11 +0000 (23:20 +0000)
commitdf4c4c09eeb747af3a42734a895879ed0289fa1a
tree9beaf781e4574037a581097082c65dc7d506ec5b
parentd856df28b2b1a4bf6e806040a39e0729bb6fc94d
[-Wunreachable-code] Tweak heuristic for configuration values to include arithmetic operations involving sizeof(), but not raw integers.

This case was motivated by a false positive with the
llvm::AlignOf<> specialization in LLVM.

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