Home
last modified time | relevance | path

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

123

/freebsd/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 DBuiltinFunctionChecker.cpp63 if (QualType ParmTy = FD->getParamDecl(0)->getType(); in isBuiltinLikeFunction()
H A DInnerPointerChecker.cpp158 QualType ParamTy = FD->getParamDecl(I)->getType(); in checkFunctionArguments()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DAttr.h75 return FD->getParamDecl(Idx); in getFunctionOrMethodParam()
77 return MD->getParamDecl(Idx); in getFunctionOrMethodParam()
79 return BD->getParamDecl(Idx); in getFunctionOrMethodParam()
87 return BD->getParamDecl(Idx)->getType(); in getFunctionOrMethodParamType()
H A DCodeCompleteConsumer.h1150 const NamedDecl *getParamDecl(unsigned N) const;
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp723 getFragmentsForType(Func->getParamDecl(i)->getType(), in getFragmentsForFunction()
724 Func->getParamDecl(i)->getASTContext(), After)); in getFragmentsForFunction()
735 Fragments.append(getFragmentsForParam(Func->getParamDecl(i))); in getFragmentsForFunction()
857 Fragments.append(getFragmentsForParam(Method->getParamDecl(i))); in getFragmentsForSpecialCXXMethod()
893 Fragments.append(getFragmentsForParam(Method->getParamDecl(i))); in getFragmentsForCXXMethod()
927 Fragments.append(getFragmentsForParam(ConversionFunction->getParamDecl(i))); in getFragmentsForConversionFunction()
956 Fragments.append(getFragmentsForParam(Method->getParamDecl(i))); in getFragmentsForOverloadedOperator()
1439 const ParmVarDecl *Param = Method->getParamDecl(i); in getFragmentsForObjCMethod()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp309 const auto *RD = FD->getParamDecl(0)->getType()->getPointeeCXXRecordDecl(); in shouldTrackFirstArgument()
385 VisitPointerArg(Ctor->getParamDecl(0), CCE->getArgs()[0], true); in handleGslAnnotatedTypes()
417 LHST = MD->getParamDecl(0)->getType(); in implicitObjectParamIsLifetimeBound()
486 if (CheckCoroCall || Callee->getParamDecl(I)->hasAttr<LifetimeBoundAttr>()) in visitLifetimeBoundArguments()
487 VisitLifetimeBoundArg(Callee->getParamDecl(I), Args[I]); in visitLifetimeBoundArguments()
H A DCodeCompleteConsumer.cpp590 CodeCompleteConsumer::OverloadCandidate::getParamDecl(unsigned N) const { in getParamDecl() function in CodeCompleteConsumer::OverloadCandidate
613 return FD->getParamDecl(N); in getParamDecl()
H A DSemaDeclCXX.cpp520 ParmVarDecl *OldParam = PrevForDefaultArgs->getParamDecl(p); in MergeCXXFunctionDecl()
521 ParmVarDecl *NewParam = New->getParamDecl(p); in MergeCXXFunctionDecl()
564 OldParam = Older->getParamDecl(p); in MergeCXXFunctionDecl()
649 ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments()); in MergeCXXFunctionDecl()
1647 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments()
1658 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments()
1739 const ParmVarDecl *PD = FD->getParamDecl(ArgIndex); in CheckConstexprParameterTypes()
4807 ParmVarDecl *Param = Constructor->getParamDecl(0); in BuildImplicitBaseInitializer()
4877 ParmVarDecl *Param = Constructor->getParamDecl(0); in BuildImplicitMemberInitializer()
7848 FD->getParamDecl(0)->getType().getNonReferenceType(); in visit()
[all …]
H A DSemaOverload.cpp999 if (!Ctx.hasSameUnqualifiedType(X->getParamDecl(I)->getType(), in FunctionsCorrespond()
1000 Y->getParamDecl(I)->getType())) in FunctionsCorrespond()
1078 !S.Context.hasSameUnqualifiedType(FD->getParamDecl(0)->getType(), in shouldAddReversed()
1079 FD->getParamDecl(1)->getType()) || in shouldAddReversed()
6359 !Fun->getParamDecl(0)->getType()->isRValueReferenceType()); in GetExplicitObjectExpr()
6368 InitializedEntity::InitializeParameter(S.Context, Fun->getParamDecl(0)), in InitializeExplicitObjectArgument()
6919 Constructor->getParamDecl(0)->getType()->isReferenceType()) { in AddOverloadCandidate()
6920 QualType P = Constructor->getParamDecl(0)->getType()->getPointeeType(); in AddOverloadCandidate()
7160 S.Context, Function->getParamDecl(I)), in convertArgsForAvailabilityChecks()
7175 ParmVarDecl *P = Function->getParamDecl(i); in convertArgsForAvailabilityChecks()
[all …]
H A DSemaOpenCL.cpp125 ErrorLoc = BD->getParamDecl(ArgCounter)->getBeginLoc(); in checkBlockArgs()
H A DSemaLambda.cpp402 ParmVarDecl *Param = Method->getParamDecl(0); in DiagnoseInvalidExplicitObjectParameterInLambda()
1736 ParmVarDecl *From = CallOperator->getParamDecl(I); in addFunctionPointerConversion()
2319 ParmVarDecl *From = CallOperator->getParamDecl(I); in BuildBlockForLambdaConversion()
H A DSemaTemplateDeductionGuide.cpp1215 const auto *P = DG->getParamDecl(I); in DeclareImplicitDeductionGuidesForTypeAlias()
1219 DG->getParamDecl(I)->getBeginLoc(), P->getLocation(), nullptr, in DeclareImplicitDeductionGuidesForTypeAlias()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCalledOnceCheck.cpp661 TrackedParams.push_back(Function->getParamDecl(Index)); in findParamsToTrack()
1058 return shouldBeCalledOnce(Block->getParamDecl(ParamIndex)); in shouldBeCalledOnce()
1072 return shouldBeCalledOnce(Function->getParamDecl(ParamIndex)) || in shouldBeCalledOnce()
1089 const ParmVarDecl *Parameter = Method->getParamDecl(ParamIndex); in shouldBeCalledOnce()
H A DIssueHash.cpp52 Signature.append(Target->getParamDecl(i)->getType().getAsString()); in GetSignature()
H A DThreadSafetyCommon.cpp335 ? cast<FunctionDecl>(D)->getCanonicalDecl()->getParamDecl(I) in translateDeclRefExpr()
336 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I); in translateDeclRefExpr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp372 ParmVarDecl *GridDimParam = cudaLaunchKernelFD->getParamDecl(1); in emitDeviceStubBodyNew()
400 cudaLaunchKernelFD->getParamDecl(0)->getType()); in emitDeviceStubBodyNew()
404 cudaLaunchKernelFD->getParamDecl(3)->getType()); in emitDeviceStubBodyNew()
406 cudaLaunchKernelFD->getParamDecl(4)->getType()); in emitDeviceStubBodyNew()
408 cudaLaunchKernelFD->getParamDecl(5)->getType()); in emitDeviceStubBodyNew()
H A DCGHLSLRuntime.cpp389 const ParmVarDecl *PD = FD->getParamDecl(Param.getArgNo() - SRetOffset); in emitEntryFunction()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRDiagsEmitter.cpp107 const ParmVarDecl *FirstParam = FirstMethod->getParamDecl(I); in diagnoseSubMismatchMethodParameters()
108 const ParmVarDecl *SecondParam = SecondMethod->getParamDecl(I); in diagnoseSubMismatchMethodParameters()
1157 const ParmVarDecl *FirstParam = FirstMethod->getParamDecl(I); in diagnoseMismatch()
1158 const ParmVarDecl *SecondParam = SecondMethod->getParamDecl(I); in diagnoseMismatch()
1709 const ParmVarDecl *FirstParam = FirstFunction->getParamDecl(I); in diagnoseMismatch()
1710 const ParmVarDecl *SecondParam = SecondFunction->getParamDecl(I); in diagnoseMismatch()
H A DDeclCXX.cpp2457 Context.hasSameUnqualifiedType(getParamDecl(UsualParams)->getType(), in isUsualDeallocationFunction()
2462 getParamDecl(UsualParams)->getType()->isAlignValT()) in isUsualDeallocationFunction()
2802 getParamDecl(0)->getType()->isLValueReferenceType(); in isCopyConstructor()
2807 getParamDecl(0)->getType()->isRValueReferenceType(); in isMoveConstructor()
2826 const ParmVarDecl *Param = getParamDecl(0); in isCopyOrMoveConstructor()
2872 const ParmVarDecl *Param = getParamDecl(0); in isSpecializationCopyingObject()
H A DDeclPrinter.cpp733 ParamPrinter.VisitParmVarDecl(D->getParamDecl(i)); in VisitFunctionDecl()
748 Proto += D->getParamDecl(i)->getNameAsString(); in VisitFunctionDecl()
849 ParamPrinter.VisitParmVarDecl(D->getParamDecl(i)); in VisitFunctionDecl()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpFrame.cpp182 QualType Ty = F->getParamDecl(I)->getType(); in describe()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h2669 const ParmVarDecl *getParamDecl(unsigned i) const { in getParamDecl() function
2673 ParmVarDecl *getParamDecl(unsigned i) { in getParamDecl() function
2696 return getParamDecl(hasCXXExplicitFunctionObjectParameter() ? I + 1 : I); in getNonObjectParameter()
2700 return getParamDecl(hasCXXExplicitFunctionObjectParameter() ? I + 1 : I); in getNonObjectParameter()
4573 const ParmVarDecl *getParamDecl(unsigned i) const { in getParamDecl() function
4577 ParmVarDecl *getParamDecl(unsigned i) { in getParamDecl() function
H A DDeclObjC.h377 ParmVarDecl *getParamDecl(unsigned Idx) { in getParamDecl() function
381 const ParmVarDecl *getParamDecl(unsigned Idx) const { in getParamDecl() function
382 return const_cast<ObjCMethodDecl *>(this)->getParamDecl(Idx); in getParamDecl()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransUnbridgedCasts.cpp439 ParmVarDecl *PD = FD->getParamDecl(i); in isPassedToCParamWithKnownOwnership()

123