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/RetainCountDiagnostics.cpp | |
| 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/RetainCountDiagnostics.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp index 74dd1e149ef..44cb7553c0d 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp @@ -156,17 +156,17 @@ static void generateDiagnosticsForCallLike(ProgramStateRef CurrSt, } } - if (CurrV.getObjKind() == RetEffect::CF) { + if (CurrV.getObjKind() == ObjKind::CF) { os << " returns a Core Foundation object of type " << Sym->getType().getAsString() << " with a "; - } else if (CurrV.getObjKind() == RetEffect::OS) { + } else if (CurrV.getObjKind() == ObjKind::OS) { os << " returns an OSObject of type " << getPrettyTypeName(Sym->getType()) << " with a "; - } else if (CurrV.getObjKind() == RetEffect::Generalized) { + } else if (CurrV.getObjKind() == ObjKind::Generalized) { os << " returns an object of type " << Sym->getType().getAsString() << " with a "; } else { - assert(CurrV.getObjKind() == RetEffect::ObjC); + assert(CurrV.getObjKind() == ObjKind::ObjC); QualType T = Sym->getType(); if (!isa<ObjCObjectPointerType>(T)) { os << " returns an Objective-C object with a "; |

