Sentence-type bug type and category.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68345 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CheckDeadStores.cpp b/lib/Analysis/CheckDeadStores.cpp
index d1b3be5..f75a964 100644
--- a/lib/Analysis/CheckDeadStores.cpp
+++ b/lib/Analysis/CheckDeadStores.cpp
@@ -51,27 +51,27 @@
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,