diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-09-11 17:24:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-09-11 17:24:14 +0000 |
commit | ce1cab9fc0b4aec9cdef1b30a14e4ccdca3ac5f1 (patch) | |
tree | af00fa36cad87b13f179746cb0e40325af8f439f /Basic/SourceManager.cpp | |
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
Diffstat (limited to 'Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions