Searched refs:RefVal (Results 1 – 5 of 5) sorted by relevance
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountChecker.h | 50 class RefVal { 109 RefVal(Kind k, ObjKind o, unsigned cnt, unsigned acnt, QualType t, in RefVal() function 171 static RefVal makeOwned(ObjKind o, QualType t) { in makeOwned() 172 return RefVal(Owned, o, /*Count=*/1, 0, t, IvarAccessHistory::None); in makeOwned() 179 static RefVal makeNotOwned(ObjKind o, QualType t) { in makeNotOwned() 180 return RefVal(NotOwned, o, /*Count=*/0, 0, t, IvarAccessHistory::None); in makeNotOwned() 183 RefVal operator-(size_t i) const { 184 return RefVal(getKind(), getObjKind(), getCount() - i, 188 RefVal operator+(size_t i) const { 189 return RefVal(getKind(), getObjKind(), getCount() + i, [all …]
|
| H A D | RetainCountChecker.cpp | 23 REGISTER_MAP_WITH_PROGRAMSTATE(RefBindings, SymbolRef, RefVal) 29 const RefVal *getRefBinding(ProgramStateRef State, SymbolRef Sym) { in getRefBinding() 38 RefVal Val) { in setRefBinding() 47 void RefVal::print(raw_ostream &Out) const { in print() 105 case RefVal::ErrorOverAutorelease: in print() 109 case RefVal::ErrorReturnedNotOwned: in print() 213 const RefVal* T = getRefBinding(state, Sym); in checkPostStmt() 217 RefVal::Kind hasErr = (RefVal::Kind) 0; in checkPostStmt() 235 if (const RefVal* T = getRefBinding(state, sym)) { in processObjCLiterals() 236 RefVal::Kind hasErr = (RefVal::Kind) 0; in processObjCLiterals() [all …]
|
| H A D | RetainCountDiagnostics.cpp | 95 const RefVal *PrevT, in shouldGenerateNote() 96 const RefVal &CurrV, in shouldGenerateNote() 99 RefVal PrevV = *PrevT; in shouldGenerateNote() 107 if (CurrV.getKind() == RefVal::Released) { in shouldGenerateNote() 117 case RefVal::Owned: in shouldGenerateNote() 118 case RefVal::NotOwned: in shouldGenerateNote() 139 case RefVal::Released: in shouldGenerateNote() 141 RefVal::IvarAccessHistory::ReleasedAfterDirectAccess && in shouldGenerateNote() 148 case RefVal::ReturnedOwned: in shouldGenerateNote() 157 case RefVal::ReturnedNotOwned: in shouldGenerateNote() [all …]
|
| /src/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | AcceleratorRecordsSaver.cpp | 22 std::optional<DWARFFormValue> RefVal; in hashFullyQualifiedName() local 28 if (!(RefVal = InputDIE.find(dwarf::DW_AT_specification)) && in hashFullyQualifiedName() 29 !(RefVal = InputDIE.find(dwarf::DW_AT_abstract_origin))) in hashFullyQualifiedName() 32 if (!RefVal->isFormClass(DWARFFormValue::FC_Reference)) in hashFullyQualifiedName() 36 *RefVal, ResolveInterCUReferencesMode::Resolve); in hashFullyQualifiedName()
|
| /src/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFVerifier.cpp | 839 std::optional<uint64_t> RefVal = AttrValue.Value.getAsRelativeReference(); in verifyDebugInfoForm() local 840 assert(RefVal); in verifyDebugInfoForm() 841 if (RefVal) { in verifyDebugInfoForm() 857 LocalReferences[AttrValue.Value.getUnit()->getOffset() + *RefVal] in verifyDebugInfoForm() 866 std::optional<uint64_t> RefVal = AttrValue.Value.getAsDebugInfoReference(); in verifyDebugInfoForm() local 867 assert(RefVal); in verifyDebugInfoForm() 868 if (RefVal) { in verifyDebugInfoForm() 869 if (*RefVal >= DieCU->getInfoSection().Data.size()) { in verifyDebugInfoForm() 879 CrossUnitReferences[*RefVal].insert(Die.getOffset()); in verifyDebugInfoForm()
|