Home
last modified time | relevance | path

Searched refs:ObjKind (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/clang/lib/Analysis/
DRetainSummaryManager.cpp68 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/
DObjCRetainCount.h144 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/
DRetainSummaryManager.h35 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/
DInputFiles.h60 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()
DSymbols.h246 isUsedInRegularObj(!file || file->kind() == InputFile::ObjKind), in Symbol()
DInputFiles.cpp263 if (kind() != ObjKind) in getSrcMsg()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
DRetainCountChecker.cpp189 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 …]
DRetainCountChecker.h110 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()
DRetainCountDiagnostics.cpp264 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/
DInputFiles.h53 ObjKind, enumerator
93 static bool classof(const InputFile *f) { return f->kind() == ObjKind; } in classof()
DInputFiles.cpp380 : InputFile(ObjKind, mb), modTime(modTime) { in ObjFile()
/external/llvm-project/clang/lib/ARCMigrate/
DObjCMT.cpp1466 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/
DRetainCountChecker.cpp137 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()