Home
last modified time | relevance | path

Searched refs:getParamDecl (Results 1 – 25 of 56) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCXXSelfAssignmentChecker.cpp51 auto Param = SVB.makeLoc(State->getRegion(MD->getParamDecl(0), LCtx)); in checkBeginFunction()
59 Out << "Assuming " << MD->getParamDecl(0)->getName() << " == *this"; in checkBeginFunction()
69 Out << "Assuming " << MD->getParamDecl(0)->getName() << " != *this"; in checkBeginFunction()
H A DIterator.cpp82 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isInsertCall()
93 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isEmplaceCall()
104 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isEraseCall()
107 !isIteratorType(Func->getParamDecl(1)->getType())) in isEraseCall()
118 if (!isIteratorType(Func->getParamDecl(0)->getType())) in isEraseAfterCall()
121 !isIteratorType(Func->getParamDecl(1)->getType())) in isEraseAfterCall()
H A DMismatchedIteratorChecker.cpp124 if (Ctr->getParamDecl(0)->getName() != "first" || in checkPreCall()
125 Ctr->getParamDecl(1)->getName() != "last") in checkPreCall()
176 const auto *Param = Func->getParamDecl(J); in checkPreCall()
H A DGTestChecker.cpp223 if (ParamCount == 1 && CtorDecl->getParamDecl(0)->getType() == BoolTy) { in checkPostCall()
229 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall()
H A DFuchsiaHandleChecker.cpp338 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPreCall()
418 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPostCall()
586 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPointerEscape()
H A DInnerPointerChecker.cpp169 QualType ParamTy = FD->getParamDecl(I)->getType(); in checkFunctionArguments()
H A DMallocChecker.cpp1046 FD->getParamDecl(0)->getType().getDesugaredType(AC) == AC.VoidPtrTy && in isStandardRealloc()
1047 FD->getParamDecl(1)->getType().getDesugaredType(AC) == in isStandardRealloc()
1060 FD->getParamDecl(0)->getType().getDesugaredType(AC) == AC.VoidPtrTy && in isGRealloc()
1061 FD->getParamDecl(1)->getType().getDesugaredType(AC) == in isGRealloc()
H A DCallAndMessageChecker.cpp532 ParamDecl = FD->getParamDecl(i); in checkArgInitializedness()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp323 const ParmVarDecl *Flag = D->getParamDecl(0); in create_call_once()
324 const ParmVarDecl *Callback = D->getParamDecl(1); in create_call_once()
407 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once()
483 const ParmVarDecl *Predicate = D->getParamDecl(0); in create_dispatch_once()
493 const ParmVarDecl *Block = D->getParamDecl(1); in create_dispatch_once()
568 const ParmVarDecl *PV = D->getParamDecl(1); in create_dispatch_sync()
610 const ParmVarDecl *OldValue = D->getParamDecl(0); in create_OSAtomicCompareAndSwap()
613 const ParmVarDecl *NewValue = D->getParamDecl(1); in create_OSAtomicCompareAndSwap()
618 const ParmVarDecl *TheValue = D->getParamDecl(2); in create_OSAtomicCompareAndSwap()
H A DCalledOnceCheck.cpp661 TrackedParams.push_back(Function->getParamDecl(Index)); in findParamsToTrack()
1057 return shouldBeCalledOnce(Block->getParamDecl(ParamIndex)); in shouldBeCalledOnce()
1071 return shouldBeCalledOnce(Function->getParamDecl(ParamIndex)) || in shouldBeCalledOnce()
1088 const ParmVarDecl *Parameter = Method->getParamDecl(ParamIndex); in shouldBeCalledOnce()
H A DIssueHash.cpp51 Signature.append(Target->getParamDecl(i)->getType().getAsString()); in GetSignature()
H A DThreadSafetyCommon.cpp294 ? cast<FunctionDecl>(D)->getCanonicalDecl()->getParamDecl(I) in translateDeclRefExpr()
295 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I); in translateDeclRefExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaSYCL.cpp57 QualType KernelParamTy = KernelCaller->getParamDecl(0)->getType(); in GetSYCLKernelObjectType()
H A DSemaDeclCXX.cpp513 ParmVarDecl *NewParam = New->getParamDecl(p); in MergeCXXFunctionDecl()
556 OldParam = Older->getParamDecl(p); in MergeCXXFunctionDecl()
1599 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments()
1610 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments()
8099 ParmVarDecl *PD = FD->getParamDecl(I); in getParam()
8420 << FD->getParamDecl(0)->getType() in CheckExplicitlyDefaultedComparison()
8421 << FD->getParamDecl(0)->getSourceRange() in CheckExplicitlyDefaultedComparison()
8422 << FD->getParamDecl(1)->getType() in CheckExplicitlyDefaultedComparison()
15634 if (FnDecl->getParamDecl(0)->hasDefaultArg()) in CheckOperatorNewDeclaration()
17176 Diag(New->getParamDecl(I)->getLocation(), in CheckOverridingFunctionAttributes()
[all …]
H A DSemaOverload.cpp902 !Ctx.hasSameUnqualifiedType(FD->getParamDecl(0)->getType(), in shouldAddReversed()
903 FD->getParamDecl(1)->getType()) || in shouldAddReversed()
6371 Constructor->getParamDecl(0)->getType()->isReferenceType()) { in AddOverloadCandidate()
6372 QualType P = Constructor->getParamDecl(0)->getType()->getPointeeType(); in AddOverloadCandidate()
6622 ParmVarDecl *P = Function->getParamDecl(i); in convertArgsForAvailabilityChecks()
9521 return F->getParamDecl(I++)->getType(); in haveSameParameterTypes()
10689 if (modeCount == 1 && Fn->getParamDecl(0)->getDeclName()) in DiagnoseArityMismatch()
10692 << Description << mode << Fn->getParamDecl(0) << NumFormalArgs; in DiagnoseArityMismatch()
11053 Meth->getParamDecl(0)->getType()->getAs<ReferenceType>()) { in DiagnoseBadTarget()
11208 << Fn->getParamDecl(0)->getType()->isRValueReferenceType(); in NoteFunctionCandidate()
[all …]
H A DSemaLambda.cpp549 ParmVarDecl *Param = CallOperator->getParamDecl(p); in addLambdaParameters()
1434 ParmVarDecl *From = CallOperator->getParamDecl(I); in addFunctionPointerConversion()
1997 ParmVarDecl *From = CallOperator->getParamDecl(I); in BuildBlockForLambdaConversion()
H A DSemaExprCXX.cpp1051 if (CheckCXXDefaultArgExpr(ThrowLoc, CD, CD->getParamDecl(I))) in CheckCXXThrowOperand()
1609 FD->getParamDecl(UsualParams)->getType(), in isNonPlacementDeallocationFunction()
1615 FD->getParamDecl(UsualParams)->getType(), in isNonPlacementDeallocationFunction()
1640 FD->getParamDecl(NumBaseParams)->getType(), in UsualDeallocFnInfo()
1647 FD->getParamDecl(NumBaseParams)->getType()->isAlignValT()) { in UsualDeallocFnInfo()
2520 C.Function->getParamDecl(1)->getType()->isAlignValT(); in resolveAllocationOverload()
3663 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in ActOnCXXDelete()
3799 QualType ParamTy = OperatorNewOrDelete->getParamDecl(i)->getType(); in SemaBuiltinOperatorNewDeleteOverloaded()
4086 BeforeToType = Ctor->getParamDecl(0)->getType().getNonReferenceType(); in PerformImplicitConversion()
H A DSemaTemplateInstantiateDecl.cpp308 PVD, FD->getParamDecl(PVD->getFunctionScopeIndex())); in instantiateOMPDeclareSimdDeclAttr()
389 PVD, FD->getParamDecl(PVD->getFunctionScopeIndex())); in instantiateOMPDeclareVariantAttr()
800 Ctor->getParamDecl(I)); in InstantiateDefaultCtorDefaultArgs()
4365 const ParmVarDecl *PatternParam = PatternDecl->getParamDecl(I); in addInstantiatedParametersToScope()
4369 ParmVarDecl *FunctionParam = Function->getParamDecl(FParamIdx); in addInstantiatedParametersToScope()
4399 ParmVarDecl *FunctionParam = Function->getParamDecl(FParamIdx); in addInstantiatedParametersToScope()
5007 ParmVarDecl *Parm = Function->getParamDecl(0); in InstantiateFunctionDefinition()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp359 ParmVarDecl *GridDimParam = cudaLaunchKernelFD->getParamDecl(1); in emitDeviceStubBodyNew()
387 cudaLaunchKernelFD->getParamDecl(0)->getType()); in emitDeviceStubBodyNew()
391 cudaLaunchKernelFD->getParamDecl(3)->getType()); in emitDeviceStubBodyNew()
393 cudaLaunchKernelFD->getParamDecl(4)->getType()); in emitDeviceStubBodyNew()
395 cudaLaunchKernelFD->getParamDecl(5)->getType()); in emitDeviceStubBodyNew()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp854 Method->getParamDecl(0)->getType()->getAs<ReferenceType>(); in addedMember()
2328 Context.hasSameUnqualifiedType(getParamDecl(UsualParams)->getType(), in isUsualDeallocationFunction()
2333 getParamDecl(UsualParams)->getType()->isAlignValT()) in isUsualDeallocationFunction()
2375 QualType ParamType = getParamDecl(0)->getType(); in isCopyAssignmentOperator()
2395 QualType ParamType = getParamDecl(0)->getType(); in isMoveAssignmentOperator()
2650 getParamDecl(0)->getType()->isLValueReferenceType(); in isCopyConstructor()
2655 getParamDecl(0)->getType()->isRValueReferenceType(); in isMoveConstructor()
2674 const ParmVarDecl *Param = getParamDecl(0); in isCopyOrMoveConstructor()
2720 const ParmVarDecl *Param = getParamDecl(0); in isSpecializationCopyingObject()
H A DDeclPrinter.cpp681 ParamPrinter.VisitParmVarDecl(D->getParamDecl(i)); in VisitFunctionDecl()
692 Proto += D->getParamDecl(i)->getNameAsString(); in VisitFunctionDecl()
785 ParamPrinter.VisitParmVarDecl(D->getParamDecl(i)); in VisitFunctionDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpFrame.cpp122 QualType Ty = F->getParamDecl(I)->getType(); in describe()
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransUnbridgedCasts.cpp439 ParmVarDecl *PD = FD->getParamDecl(i); in isPassedToCParamWithKnownOwnership()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h381 ParmVarDecl *getParamDecl(unsigned Idx) { in getParamDecl() function
385 const ParmVarDecl *getParamDecl(unsigned Idx) const { in getParamDecl() function
386 return const_cast<ObjCMethodDecl *>(this)->getParamDecl(Idx); in getParamDecl()
H A DDecl.h2501 const ParmVarDecl *getParamDecl(unsigned i) const { in getParamDecl() function
2505 ParmVarDecl *getParamDecl(unsigned i) { in getParamDecl() function
4246 const ParmVarDecl *getParamDecl(unsigned i) const { in getParamDecl() function
4250 ParmVarDecl *getParamDecl(unsigned i) { in getParamDecl() function

123