commit | ce1cab9fc0b4aec9cdef1b30a14e4ccdca3ac5f1 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Sep 11 17:24:14 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Sep 11 17:24:14 2007 +0000 |
tree | af00fa36cad87b13f179746cb0e40325af8f439f | |
parent | a596533c986e33363db80a00fb4139ea2e03ca63 [diff] |
For looking at "dead stores" in declarations, we now check to see if the assigned value is a constant expression, e.g.: int x = 0; We then check to see if "x" is ever reassigned later. If so, we don't emit a warning. This is because programmers frequently use defensive programming to make sure a variable has a defined value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41853 91177308-0d34-0410-b5e6-96231b3b80d8