[cfe-commits] r91085 - /cfe/trunk/lib/Analysis/MallocChecker.cpp

Zhongxing Xu xuzhongxing at gmail.com
Thu Dec 10 16:55:44 PST 2009


Author: zhongxingxu
Date: Thu Dec 10 18:55:44 2009
New Revision: 91085

URL: http://llvm.org/viewvc/llvm-project?rev=91085&view=rev
Log:
Use 'class' instead of 'struct'.

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

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

==============================================================================
--- cfe/trunk/lib/Analysis/MallocChecker.cpp (original)
+++ cfe/trunk/lib/Analysis/MallocChecker.cpp Thu Dec 10 18:55:44 2009
@@ -22,10 +22,11 @@
 
 namespace {
 
-struct RefState {
+class RefState {
   enum Kind { Allocated, Released, Escaped } K;
   const Stmt *S;
 
+public:
   RefState(Kind k, const Stmt *s) : K(k), S(s) {}
 
   bool isAllocated() const { return K == Allocated; }





More information about the cfe-commits mailing list