From: Ted Kremenek Date: Thu, 2 Apr 2009 22:50:16 +0000 (+0000) Subject: Sentence-type bug type and category. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc620c4eb14d2ff59e3ec0714602997ffeddfd7;p=clang 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 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,