Home | History | Annotate | Download | only in Checkers

Lines Matching defs:FD

639   const RetainSummary *getCFSummaryCreateRule(const FunctionDecl *FD);
640 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD);
641 const RetainSummary *getCFCreateGetRuleSummary(const FunctionDecl *FD);
750 const RetainSummary *getFunctionSummary(const FunctionDecl *FD);
795 const FunctionDecl *FD);
880 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
884 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
888 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
1016 RetainSummaryManager::getFunctionSummary(const FunctionDecl *FD) {
1018 if (!FD)
1022 FuncSummariesTy::iterator I = FuncSummaries.find(FD);
1032 if (FD->isImplicit()) {
1039 const FunctionType* FT = FD->getType()->getAs<FunctionType>();
1040 const IdentifierInfo *II = FD->getIdentifier();
1147 if (isRetain(FD, FName))
1149 else if (isMakeCollectable(FD, FName))
1152 S = getCFCreateGetRuleSummary(FD);
1159 if (isRetain(FD, FName))
1162 S = getCFCreateGetRuleSummary(FD);
1171 S = getCFCreateGetRuleSummary(FD);
1175 if (FD->getAttr<CFAuditedTransferAttr>()) {
1176 S = getCFCreateGetRuleSummary(FD);
1189 if (isRelease(FD, FName))
1227 updateSummaryFromAnnotations(S, FD);
1229 FuncSummaries[FD] = S;
1234 RetainSummaryManager::getCFCreateGetRuleSummary(const FunctionDecl *FD) {
1235 if (coreFoundation::followsCreateRule(FD))
1236 return getCFSummaryCreateRule(FD);
1238 return getCFSummaryGetRule(FD);
1265 RetainSummaryManager::getCFSummaryCreateRule(const FunctionDecl *FD) {
1272 RetainSummaryManager::getCFSummaryGetRule(const FunctionDecl *FD) {
1308 const FunctionDecl *FD) {
1309 if (!FD)
1317 for (FunctionDecl::param_const_iterator pi = FD->param_begin(),
1318 pe = FD->param_end(); pi != pe; ++pi, ++parm_idx) {
1326 QualType RetTy = FD->getResultType();
1327 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, FD))
1903 if (const FunctionDecl *FD = X.getAsFunctionDecl())
1904 os << "Call to function '" << *FD << '\'';
2015 const FunctionDecl *FD = X.getAsFunctionDecl();
2021 os << "In GC mode a call to '" << *FD
2036 os << "When GC is not enabled a call to '" << *FD
2304 const FunctionDecl *FD = cast<FunctionDecl>(D);
2305 os << "whose name ('" << *FD
3168 const FunctionDecl *FD = C.getCalleeDecl(CE);
3169 if (!FD)
3172 IdentifierInfo *II = FD->getIdentifier();
3200 canEval = isRetain(FD, FName) || isMakeCollectable(FD, FName);
3332 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CD)) {
3333 if (!isa<CXXMethodDecl>(FD)) {
3334 const RetainSummary *Summ = Summaries.getFunctionSummary(FD);