Home | History | Annotate | Download | only in Checkers

Lines Matching refs:FD

652   const RetainSummary *getCFSummaryCreateRule(const FunctionDecl *FD);
653 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD);
654 const RetainSummary *getCFCreateGetRuleSummary(const FunctionDecl *FD);
754 const RetainSummary *getFunctionSummary(const FunctionDecl *FD);
799 const FunctionDecl *FD);
884 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
888 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
892 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) {
896 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
1025 RetainSummaryManager::getFunctionSummary(const FunctionDecl *FD) {
1027 if (!FD)
1031 FuncSummariesTy::iterator I = FuncSummaries.find(FD);
1041 if (FD->isImplicit()) {
1048 const FunctionType* FT = FD->getType()->getAs<FunctionType>();
1049 const IdentifierInfo *II = FD->getIdentifier();
1156 if (isRetain(FD, FName)) {
1158 } else if (isAutorelease(FD, FName)) {
1163 } else if (isMakeCollectable(FD, FName)) {
1167 S = getCFCreateGetRuleSummary(FD);
1175 if (isRetain(FD, FName))
1178 S = getCFCreateGetRuleSummary(FD);
1187 S = getCFCreateGetRuleSummary(FD);
1191 if (FD->hasAttr<CFAuditedTransferAttr>()) {
1192 S = getCFCreateGetRuleSummary(FD);
1205 if (isRelease(FD, FName))
1243 updateSummaryFromAnnotations(S, FD);
1245 FuncSummaries[FD] = S;
1250 RetainSummaryManager::getCFCreateGetRuleSummary(const FunctionDecl *FD) {
1251 if (coreFoundation::followsCreateRule(FD))
1252 return getCFSummaryCreateRule(FD);
1254 return getCFSummaryGetRule(FD);
1282 RetainSummaryManager::getCFSummaryCreateRule(const FunctionDecl *FD) {
1289 RetainSummaryManager::getCFSummaryGetRule(const FunctionDecl *FD) {
1325 const FunctionDecl *FD) {
1326 if (!FD)
1334 for (FunctionDecl::param_const_iterator pi = FD->param_begin(),
1335 pe = FD->param_end(); pi != pe; ++pi, ++parm_idx) {
1354 QualType RetTy = FD->getReturnType();
1355 if (Optional<RetEffect> RetE = getRetEffectFromAnnotations(RetTy, FD))
1955 if (const FunctionDecl *FD = X.getAsFunctionDecl())
1956 os << "Call to function '" << *FD << '\'';
2069 const FunctionDecl *FD = X.getAsFunctionDecl();
2075 os << "In GC mode a call to '" << *FD
2090 os << "When GC is not enabled a call to '" << *FD
2366 const FunctionDecl *FD = cast<FunctionDecl>(D);
2367 os << "whose name ('" << *FD
3355 const FunctionDecl *FD = C.getCalleeDecl(CE);
3356 if (!FD)
3359 IdentifierInfo *II = FD->getIdentifier();
3388 canEval = isRetain(FD, FName) || isAutorelease(FD, FName) ||
3389 isMakeCollectable(FD, FName);
3520 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CD)) {
3521 if (!isa<CXXMethodDecl>(FD)) {
3522 const RetainSummary *Summ = Summaries.getFunctionSummary(FD);
4020 CallEffects CallEffects::getEffect(const FunctionDecl *FD) {
4021 createCallEffect(FD, Function);