summaryrefslogtreecommitdiffstats
path: root/clang/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
commit6e4c284abef11974f4536950758f4b6a060f0c8c (patch)
treeb252beb5f1a5a34e3d5c13edbe6b4929ba3c634c /clang/lib/Analysis/CheckDeadStores.cpp
parente33194b9d5b3aeaca5c578b50b0d0e5adfdcdeeb (diff)
downloadbcm5719-llvm-6e4c284abef11974f4536950758f4b6a060f0c8c.tar.gz
bcm5719-llvm-6e4c284abef11974f4536950758f4b6a060f0c8c.zip
Sentence-type bug type and category.
llvm-svn: 68345
Diffstat (limited to 'clang/lib/Analysis/CheckDeadStores.cpp')
-rw-r--r--clang/lib/Analysis/CheckDeadStores.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Analysis/CheckDeadStores.cpp b/clang/lib/Analysis/CheckDeadStores.cpp
index d1b3be511a8..f75a96471a1 100644
--- a/clang/lib/Analysis/CheckDeadStores.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud