From 7fb1464c99c6e2f44ce9f41fd5de9edd15c1e45d Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Fri, 11 Dec 2009 00:55:44 +0000 Subject: [PATCH] Use 'class' instead of 'struct'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91085 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/MallocChecker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0