Lines Matching refs:Callee

272 static bool shouldTrackImplicitObjectArg(const CXXMethodDecl *Callee) {  in shouldTrackImplicitObjectArg()  argument
273 if (auto *Conv = dyn_cast_or_null<CXXConversionDecl>(Callee)) in shouldTrackImplicitObjectArg()
276 if (!isInStlNamespace(Callee->getParent())) in shouldTrackImplicitObjectArg()
279 Callee->getFunctionObjectParameterType()) && in shouldTrackImplicitObjectArg()
280 !isRecordWithAttr<OwnerAttr>(Callee->getFunctionObjectParameterType())) in shouldTrackImplicitObjectArg()
282 if (Callee->getReturnType()->isPointerType() || in shouldTrackImplicitObjectArg()
283 isRecordWithAttr<PointerAttr>(Callee->getReturnType())) { in shouldTrackImplicitObjectArg()
284 if (!Callee->getIdentifier()) in shouldTrackImplicitObjectArg()
286 return llvm::StringSwitch<bool>(Callee->getName()) in shouldTrackImplicitObjectArg()
293 } else if (Callee->getReturnType()->isReferenceType()) { in shouldTrackImplicitObjectArg()
294 if (!Callee->getIdentifier()) { in shouldTrackImplicitObjectArg()
295 auto OO = Callee->getOverloadedOperator(); in shouldTrackImplicitObjectArg()
299 return llvm::StringSwitch<bool>(Callee->getName()) in shouldTrackImplicitObjectArg()
367 FunctionDecl *Callee = OCE->getDirectCallee(); in handleGslAnnotatedTypes() local
368 if (Callee && Callee->isCXXInstanceMember() && in handleGslAnnotatedTypes()
369 shouldTrackImplicitObjectArg(cast<CXXMethodDecl>(Callee))) in handleGslAnnotatedTypes()
370 VisitPointerArg(Callee, OCE->getArg(0), in handleGslAnnotatedTypes()
371 !Callee->getReturnType()->isReferenceType()); in handleGslAnnotatedTypes()
374 FunctionDecl *Callee = CE->getDirectCallee(); in handleGslAnnotatedTypes() local
375 if (Callee && shouldTrackFirstArgument(Callee)) in handleGslAnnotatedTypes()
376 VisitPointerArg(Callee, CE->getArg(0), in handleGslAnnotatedTypes()
377 !Callee->getReturnType()->isReferenceType()); in handleGslAnnotatedTypes()
428 const FunctionDecl *Callee; in visitLifetimeBoundArguments() local
432 Callee = CE->getDirectCallee(); in visitLifetimeBoundArguments()
436 Callee = CCE->getConstructor(); in visitLifetimeBoundArguments()
439 if (!Callee) in visitLifetimeBoundArguments()
443 if (isa<CXXOperatorCallExpr>(Call) && Callee->isCXXInstanceMember()) { in visitLifetimeBoundArguments()
463 if (const auto *RD = Callee->getReturnType()->getAsRecordDecl()) { in visitLifetimeBoundArguments()
466 !Callee->hasAttr<CoroDisableLifetimeBoundAttr>(); in visitLifetimeBoundArguments()
477 if (Sema::CanBeGetReturnObject(Callee)) in visitLifetimeBoundArguments()
479 if (implicitObjectParamIsLifetimeBound(Callee) || CheckCoroObjArg) in visitLifetimeBoundArguments()
480 VisitLifetimeBoundArg(Callee, ObjectArg); in visitLifetimeBoundArguments()
484 N = std::min<unsigned>(Callee->getNumParams(), Args.size()); in visitLifetimeBoundArguments()
486 if (CheckCoroCall || Callee->getParamDecl(I)->hasAttr<LifetimeBoundAttr>()) in visitLifetimeBoundArguments()
487 VisitLifetimeBoundArg(Callee->getParamDecl(I), Args[I]); in visitLifetimeBoundArguments()