From: Zhongxing Xu Date: Fri, 11 Dec 2009 00:55:44 +0000 (+0000) Subject: Use 'class' instead of 'struct'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fb1464c99c6e2f44ce9f41fd5de9edd15c1e45d;p=clang Use 'class' instead of 'struct'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/MallocChecker.cpp b/lib/Analysis/MallocChecker.cpp index 204c7b320e..6fd43c11db 100644 --- a/lib/Analysis/MallocChecker.cpp +++ b/lib/Analysis/MallocChecker.cpp @@ -22,10 +22,11 @@ using namespace clang; 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; }