diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-12-11 00:55:44 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-12-11 00:55:44 +0000 |
commit | 7fb1464c99c6e2f44ce9f41fd5de9edd15c1e45d (patch) | |
tree | 384be849ae16015ca3379ea78efabfe8be1ce5ad /lib/Analysis/MallocChecker.cpp | |
parent | 8370c58b9295b32bee50443fe3ac43a47a2047e8 (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.cpp | 3 |
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; } |