Home
last modified time | relevance | path

Searched refs:OwnershipAttr (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp86 auto *OwnershipAttr = TL.getAttrAs<ObjCOwnershipAttr>(); in handleAttr() local
87 if (!OwnershipAttr) in handleAttr()
90 SourceLocation Loc = OwnershipAttr->getLocation(); in handleAttr()
99 StringRef Spell = OwnershipAttr->getKind()->getName(); in handleAttr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp522 const OwnershipAttr *Att, ProgramStateRef State) const;
576 const OwnershipAttr *Att,
1014 for (const auto *I : Func->specific_attrs<OwnershipAttr>()) { in isFreeingOwnershipAttrCall()
1015 OwnershipAttr::OwnershipKind OwnKind = I->getOwnKind(); in isFreeingOwnershipAttrCall()
1016 if (OwnKind == OwnershipAttr::Takes || OwnKind == OwnershipAttr::Holds) in isFreeingOwnershipAttrCall()
1042 return Func && Func->hasAttr<OwnershipAttr>(); in isMemCall()
1424 for (const auto *I : FD->specific_attrs<OwnershipAttr>()) { in checkOwnershipAttr()
1426 case OwnershipAttr::Returns: in checkOwnershipAttr()
1429 case OwnershipAttr::Takes: in checkOwnershipAttr()
1430 case OwnershipAttr::Holds: in checkOwnershipAttr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp1464 OwnershipAttr::OwnershipKind K = in handleOwnershipAttr()
1465 OwnershipAttr(S.Context, AL, nullptr, nullptr, 0).getOwnKind(); in handleOwnershipAttr()
1469 case OwnershipAttr::Takes: in handleOwnershipAttr()
1470 case OwnershipAttr::Holds: in handleOwnershipAttr()
1476 case OwnershipAttr::Returns: in handleOwnershipAttr()
1502 case OwnershipAttr::Takes: in handleOwnershipAttr()
1503 case OwnershipAttr::Holds: in handleOwnershipAttr()
1507 case OwnershipAttr::Returns: in handleOwnershipAttr()
1519 for (const auto *I : D->specific_attrs<OwnershipAttr>()) { in handleOwnershipAttr()
1528 } else if (K == OwnershipAttr::Returns && in handleOwnershipAttr()
[all …]
H A DSemaDecl.cpp2641 const OwnershipAttr *OA = dyn_cast<OwnershipAttr>(A); in DeclHasAttr()
2651 if (OA && isa<OwnershipAttr>(i)) in DeclHasAttr()
2652 return OA->getOwnKind() == cast<OwnershipAttr>(i)->getOwnKind(); in DeclHasAttr()