[cfe-commits] r68345 - /cfe/trunk/lib/Analysis/CheckDeadStores.cpp

Ted Kremenek kremenek at apple.com
Thu Apr 2 15:50:17 PDT 2009


Author: kremenek
Date: Thu Apr  2 17:50:16 2009
New Revision: 68345

URL: http://llvm.org/viewvc/llvm-project?rev=68345&view=rev
Log:
Sentence-type bug type and category.

Modified:
    cfe/trunk/lib/Analysis/CheckDeadStores.cpp

Modified: cfe/trunk/lib/Analysis/CheckDeadStores.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckDeadStores.cpp?rev=68345&r1=68344&r2=68345&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CheckDeadStores.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckDeadStores.cpp Thu Apr  2 17:50:16 2009
@@ -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,





More information about the cfe-commits mailing list