/external/llvm-project/clang/lib/Analysis/ |
D | RetainSummaryManager.cpp | 68 Optional<ObjKind> RetainSummaryManager::hasAnyEnabledAttrOf(const Decl *D, in hasAnyEnabledAttrOf() 70 ObjKind K; in hasAnyEnabledAttrOf() 76 K = ObjKind::CF; in hasAnyEnabledAttrOf() 88 K = ObjKind::ObjC; in hasAnyEnabledAttrOf() 95 K = ObjKind::OS; in hasAnyEnabledAttrOf() 99 K = ObjKind::Generalized; in hasAnyEnabledAttrOf() 109 Optional<ObjKind> RetainSummaryManager::hasAnyEnabledAttrOf(const Decl *D, in hasAnyEnabledAttrOf() 308 return getPersistentSummary(RetEffect::MakeOwned(ObjKind::CF), in getSummaryForObjCOrCFObject() 322 return getPersistentSummary(RetEffect::MakeOwned(ObjKind::CF), ScratchArgs, in getSummaryForObjCOrCFObject() 329 ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(DecRef, ObjKind::CF)); in getSummaryForObjCOrCFObject() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Checkers/ |
D | ObjCRetainCount.h | 144 enum ObjKind { enum 156 ObjKind O; 158 RetEffect(Kind k, ObjKind o = AnyObj) : K(k), O(o) {} in K() 163 ObjKind getObjKind() const { return O; } in getObjKind() 182 static RetEffect MakeOwned(ObjKind o, bool isAllocated = false) { 185 static RetEffect MakeNotOwned(ObjKind o) { in MakeNotOwned()
|
/external/llvm-project/clang/include/clang/Analysis/ |
D | RetainSummaryManager.h | 35 enum class ObjKind { enum 120 ObjKind O; 122 explicit ArgEffect(ArgEffectKind K = DoNothing, ObjKind O = ObjKind::AnyObj) 126 ObjKind getObjKind() const { return O; } in getObjKind() 167 ObjKind O; 169 RetEffect(Kind k, ObjKind o = ObjKind::AnyObj) : K(k), O(o) {} in K() 174 ObjKind getObjKind() const { return O; } in getObjKind() 189 return RetEffect(OwnedWhenTrackedReceiver, ObjKind::ObjC); in MakeOwnedWhenTrackedReceiver() 192 static RetEffect MakeOwned(ObjKind o) { in MakeOwned() 195 static RetEffect MakeNotOwned(ObjKind o) { in MakeNotOwned() [all …]
|
/external/llvm-project/lld/ELF/ |
D | InputFiles.h | 60 ObjKind, enumerator 72 return k == ObjKind || k == SharedKind; in isElf() 81 assert(fileKind == ObjKind || fileKind == BinaryKind); in getSections() 90 assert(fileKind == BinaryKind || fileKind == ObjKind || in getMutableSymbols() 196 static bool classof(const InputFile *f) { return f->kind() == ObjKind; } in classof() 205 ObjFile(MemoryBufferRef m, StringRef archiveName) : ELFFileBase(ObjKind, m) { in ObjFile()
|
D | Symbols.h | 246 isUsedInRegularObj(!file || file->kind() == InputFile::ObjKind), in Symbol()
|
D | InputFiles.cpp | 263 if (kind() != ObjKind) in getSrcMsg()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
D | RetainCountChecker.cpp | 189 ObjKind K; in checkPostStmt() 191 K = ObjKind::ObjC; in checkPostStmt() 193 K = ObjKind::CF; in checkPostStmt() 239 ArgEffect(MayEscape, ObjKind::ObjC), hasErr, C); in processObjCLiterals() 253 RefVal::makeNotOwned(ObjKind::ObjC, ResultTy)); in processObjCLiterals() 279 RefVal::makeNotOwned(ObjKind::ObjC, ResultTy)); in checkPostStmt() 300 ObjKind Kind; in checkPostStmt() 302 Kind = ObjKind::ObjC; in checkPostStmt() 304 Kind = ObjKind::CF; in checkPostStmt() 438 if (TrackedValue->getObjKind() != ObjKind::OS) in shouldEscapeOSArgumentOnCall() [all …]
|
D | RetainCountChecker.h | 110 RefVal(Kind k, ObjKind o, unsigned cnt, unsigned acnt, QualType t, in RefVal() 123 ObjKind getObjKind() const { in getObjKind() 124 return static_cast<ObjKind>(RawObjectKind); in getObjKind() 172 static RefVal makeOwned(ObjKind o, QualType t) { in makeOwned() 180 static RefVal makeNotOwned(ObjKind o, QualType t) { in makeNotOwned()
|
D | RetainCountDiagnostics.cpp | 264 if (CurrV.getObjKind() == ObjKind::CF) { in generateDiagnosticsForCallLike() 267 } else if (CurrV.getObjKind() == ObjKind::OS) { in generateDiagnosticsForCallLike() 270 } else if (CurrV.getObjKind() == ObjKind::Generalized) { in generateDiagnosticsForCallLike() 274 assert(CurrV.getObjKind() == ObjKind::ObjC); in generateDiagnosticsForCallLike() 787 ObjKind K = RV->getObjKind(); in getEndPath() 788 if (K == ObjKind::ObjC || K == ObjKind::CF) { in getEndPath() 795 } else if (RV->getObjKind() == ObjKind::OS) { in getEndPath()
|
/external/llvm-project/lld/MachO/ |
D | InputFiles.h | 53 ObjKind, enumerator 93 static bool classof(const InputFile *f) { return f->kind() == ObjKind; } in classof()
|
D | InputFiles.cpp | 380 : InputFile(ObjKind, mb), modTime(modTime) { in ObjFile()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 1466 if (Ret.getObjKind() == ObjKind::CF) { in AddCFAnnotations() 1473 else if (Ret.getObjKind() == ObjKind::ObjC) { in AddCFAnnotations() 1489 if (AE.getKind() == DecRef && AE.getObjKind() == ObjKind::CF && in AddCFAnnotations() 1495 } else if (AE.getKind() == DecRef && AE.getObjKind() == ObjKind::ObjC && in AddCFAnnotations() 1527 if (Ret.getObjKind() == ObjKind::CF && in migrateAddFunctionAnnotation() 1542 AE.getKind() == IncRef) && AE.getObjKind() == ObjKind::CF) { in migrateAddFunctionAnnotation() 1579 if (Ret.getObjKind() == ObjKind::CF) { in AddCFAnnotations() 1586 else if (Ret.getObjKind() == ObjKind::ObjC) { in AddCFAnnotations() 1615 && AE.getObjKind() == ObjKind::CF in AddCFAnnotations() 1658 if ((Ret.getObjKind() == ObjKind::CF || in migrateAddMethodAnnotation() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | RetainCountChecker.cpp | 137 RefVal(Kind k, RetEffect::ObjKind o, unsigned cnt, unsigned acnt, QualType t, in RefVal() 150 RetEffect::ObjKind getObjKind() const { in getObjKind() 151 return static_cast<RetEffect::ObjKind>(RawObjectKind); in getObjKind() 199 static RefVal makeOwned(RetEffect::ObjKind o, QualType t, in makeOwned() 208 static RefVal makeNotOwned(RetEffect::ObjKind o, QualType t, in makeNotOwned() 2851 RetEffect::ObjKind Kind; in checkPostStmt()
|