aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/MallocChecker.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-12-11 00:55:44 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-12-11 00:55:44 +0000
commit7fb1464c99c6e2f44ce9f41fd5de9edd15c1e45d (patch)
tree384be849ae16015ca3379ea78efabfe8be1ce5ad /lib/Analysis/MallocChecker.cpp
parent8370c58b9295b32bee50443fe3ac43a47a2047e8 (diff)
Use 'class' instead of 'struct'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MallocChecker.cpp')
-rw-r--r--lib/Analysis/MallocChecker.cpp3
1 files changed, 2 insertions, 1 deletions
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; }