aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CheckDeadStores.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-02 22:50:16 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-02 22:50:16 +0000
commitefc620c4eb14d2ff59e3ec0714602997ffeddfd7 (patch)
tree89cd59db898ff072e1423cb7a8883b843bede2f8 /lib/Analysis/CheckDeadStores.cpp
parentc66a5a30a27e7b9cfab46ac8be918e3ea5b0c5a5 (diff)
Sentence-type bug type and category.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckDeadStores.cpp')
-rw-r--r--lib/Analysis/CheckDeadStores.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/CheckDeadStores.cpp b/lib/Analysis/CheckDeadStores.cpp
index d1b3be511a..f75a96471a 100644
--- a/lib/Analysis/CheckDeadStores.cpp
+++ b/lib/Analysis/CheckDeadStores.cpp
@@ -51,27 +51,27 @@ public:
assert(false && "Impossible dead store type.");
case DeadInit:
- BugType = "dead initialization";
+ BugType = "Dead initialization";
msg = "Value stored to '" + name +
"' during its initialization is never read";
break;
case DeadIncrement:
- BugType = "dead increment";
+ BugType = "Dead increment";
case Standard:
- if (!BugType) BugType = "dead assignment";
+ if (!BugType) BugType = "Dead assignment";
msg = "Value stored to '" + name + "' is never read";
break;
case Enclosing:
- BugType = "dead nested assignment";
+ BugType = "Dead nested assignment";
msg = "Although the value stored to '" + name +
"' is used in the enclosing expression, the value is never actually"
" read from '" + name + "'";
break;
}
- BR.EmitBasicReport(BugType, "Dead Store", msg.c_str(), L, R);
+ BR.EmitBasicReport(BugType, "Dead store", msg.c_str(), L, R);
}
void CheckVarDecl(VarDecl* VD, Expr* Ex, Expr* Val,