diff options
| author | George Karpenkov <ekarpenkov@apple.com> | 2019-01-10 18:13:46 +0000 |
|---|---|---|
| committer | George Karpenkov <ekarpenkov@apple.com> | 2019-01-10 18:13:46 +0000 |
| commit | 7e3016dec4abd700e8e0828f1e20c86b0a04510b (patch) | |
| tree | 9e105f01667173eb16c5baceb6ad3152d68dc5c8 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h | |
| parent | 52791c6e28e6dcab437a733dcc54a20a4deb3d4a (diff) | |
| download | bcm5719-llvm-7e3016dec4abd700e8e0828f1e20c86b0a04510b.tar.gz bcm5719-llvm-7e3016dec4abd700e8e0828f1e20c86b0a04510b.zip | |
[analyzer] [NFC] Move ObjKind into a separate top-level enum in RetainSummaryManager.
Allows using it in future outside of RetEffect.
Differential Revision: https://reviews.llvm.org/D56039
llvm-svn: 350857
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h index 151aa49ed4a..d8bbe6fcdd4 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h @@ -94,7 +94,7 @@ private: /// The kind of object being tracked (CF or ObjC or OSObject), if known. /// - /// See the RetEffect::ObjKind enum for possible values. + /// See the ObjKind enum for possible values. unsigned RawObjectKind : 3; /// True if the current state and/or retain count may turn out to not be the @@ -108,7 +108,7 @@ private: /// them. unsigned RawIvarAccessHistory : 2; - RefVal(Kind k, RetEffect::ObjKind o, unsigned cnt, unsigned acnt, QualType t, + RefVal(Kind k, ObjKind o, unsigned cnt, unsigned acnt, QualType t, IvarAccessHistory IvarAccess) : Cnt(cnt), ACnt(acnt), T(t), RawKind(static_cast<unsigned>(k)), RawObjectKind(static_cast<unsigned>(o)), @@ -121,8 +121,8 @@ private: public: Kind getKind() const { return static_cast<Kind>(RawKind); } - RetEffect::ObjKind getObjKind() const { - return static_cast<RetEffect::ObjKind>(RawObjectKind); + ObjKind getObjKind() const { + return static_cast<ObjKind>(RawObjectKind); } unsigned getCount() const { return Cnt; } @@ -170,7 +170,7 @@ public: /// current function, at least partially. /// /// Most commonly, this is an owned object with a retain count of +1. - static RefVal makeOwned(RetEffect::ObjKind o, QualType t) { + static RefVal makeOwned(ObjKind o, QualType t) { return RefVal(Owned, o, /*Count=*/1, 0, t, IvarAccessHistory::None); } @@ -178,7 +178,7 @@ public: /// the current function. /// /// Most commonly, this is an unowned object with a retain count of +0. - static RefVal makeNotOwned(RetEffect::ObjKind o, QualType t) { + static RefVal makeNotOwned(ObjKind o, QualType t) { return RefVal(NotOwned, o, /*Count=*/0, 0, t, IvarAccessHistory::None); } |

