Home
last modified time | relevance | path

Searched refs:getNumParams (Results 1 – 25 of 171) sorted by relevance

1234567

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIterator.cpp57 HasPreIncrOp = HasPreIncrOp || (Method->getNumParams() == 0); in isIterator()
58 HasPostIncrOp = HasPostIncrOp || (Method->getNumParams() == 1); in isIterator()
62 HasDerefOp = (Method->getNumParams() == 0); in isIterator()
80 if (Func->getNumParams() < 2 || Func->getNumParams() > 3) in isInsertCall()
91 if (Func->getNumParams() < 2) in isEmplaceCall()
102 if (Func->getNumParams() < 1 || Func->getNumParams() > 2) in isEraseCall()
106 if (Func->getNumParams() == 2 && in isEraseCall()
116 if (Func->getNumParams() < 1 || Func->getNumParams() > 2) in isEraseAfterCall()
120 if (Func->getNumParams() == 2 && in isEraseAfterCall()
H A DMismatchedIteratorChecker.cpp117 if (Ctr->getNumParams() < 2) in checkPreCall()
171 for (auto J = 0U; J < Func->getNumParams(); ++J) { in checkPreCall()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DLowLevelHelpers.cpp74 NumArgs = std::min(NumArgs, FProto->getNumParams()); in matchEachArgumentWithParamTypeImpl()
78 if (FProto && FProto->getNumParams() > ParamIndex) in matchEachArgumentWithParamTypeImpl()
81 FD && FD->getNumParams() > ParamIndex) in matchEachArgumentWithParamTypeImpl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DSmartPointerAccessorCaching.cpp53 if (!MD->isConst() || MD->getNumParams() != 0) in pointerLikeReturnType()
78 if (!MD->isConst() || MD->getNumParams() != 0 || in findReturnType()
191 MD->getNumParams() == 0 && MD->getReturnType()->isReferenceType()) { in getCanonicalSmartPointerLikeOperatorCallee()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFunction.h203 unsigned getNumParams() const { return ParamTypes.size(); } in getNumParams() function
208 assert(getNumParams() >= (unsigned)(hasThisPointer() + hasRVO())); in getNumWrittenParams()
209 return getNumParams() - hasThisPointer() - hasRVO(); in getNumWrittenParams()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DVFABIDemangler.h112 for (unsigned I = 0; I < FTy->getNumParams(); ++I) in get()
116 VFParameter({FTy->getNumParams(), VFParamKind::GlobalPredicate})); in get()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp130 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper()
226 FuncTy->getNumParams() == 0 && in shouldFixMainFunction()
H A DWebAssemblyAddMissingPrototypes.cpp80 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.cpp92 unsigned NumArgs = func_proto_type->getNumParams(); in AddFunDecl()
122 false, op_kind, func_proto_type->getNumParams())) in AddFunDecl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp595 if (FT->getNumParams() == 0 || !FT->getParamType(0)->isPointerTy()) in checkWFRetconPrototype()
610 if (FT->getNumParams() != 1 || in checkWFAlloc()
625 if (FT->getNumParams() != 1 || in checkWFDealloc()
671 if (FunTy->getNumParams() != 1 || !FunTy->getParamType(0)->isPointerTy()) in checkAsyncContextProjectFunction()
687 if (FnTy->getNumParams() != (arg_size() - 3)) in checkWellFormed()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DAttr.h66 return cast<FunctionProtoType>(FnTy)->getNumParams(); in getFunctionOrMethodNumParams()
68 return BD->getNumParams(); in getFunctionOrMethodNumParams()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DMacroArgs.cpp52 MacroArgs(UnexpArgTokens.size(), VarargsElided, MI->getNumParams()); in create()
59 Result->NumMacroArgs = MI->getNumParams(); in create()
H A DMacroInfo.cpp95 getNumParams() != Other.getNumParams() || in isIdenticalTo()
H A DTokenLexer.cpp84 if (Macro->isFunctionLike() && Macro->getNumParams()) in Init()
142 if (!Macro->isVariadic() || MacroArgNo != Macro->getNumParams()-1) in MaybeRemoveCommaBeforeVaArgs()
157 && Macro->getNumParams() < 2) in MaybeRemoveCommaBeforeVaArgs()
520 (unsigned)ArgNo == Macro->getNumParams()-1 && in ExpandFunctionArguments()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.cpp91 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp519 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
520 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
522 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
557 if (FTy->getNumParams() == 1 && in runFunction()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp537 unsigned CodeCompleteConsumer::OverloadCandidate::getNumParams() const { in getNumParams() function in CodeCompleteConsumer::OverloadCandidate
551 return FPT->getNumParams(); in getNumParams()
580 if (N < FPT->getNumParams()) in getParamType()
611 if (N < ProtoTypeLoc.getNumParams()) { in getParamDecl()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMangler.cpp183 (!FT->isVarArg() || FT->getNumParams() == 0 || in getNameWithPrefix()
184 (FT->getNumParams() == 1 && MSFunc->hasStructRetAttr()))) in getNameWithPrefix()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp47 return FT && FT->getReturnType()->isVoidType() && FT->getNumParams() == 0; in isDispatchBlock()
428 if (D->getNumParams() != CallbackFunctionType->getNumParams() + 2) { in create_call_once()
438 for (unsigned int ParamIdx = 2; ParamIdx < D->getNumParams(); ParamIdx++) { in create_call_once()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp199 if (I == FT->getNumParams()) { in getThunkArgTypes()
204 for (unsigned E = FT->getNumParams(); I != E; ++I) { in getThunkArgTypes()
237 if (FT->getNumParams()) { in getThunkRetType()
241 if (FT->getNumParams() > 1) { in getThunkRetType()
409 if (FT->getNumParams()) { in buildExitThunk()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenFunctionInfo.h55 return RequiredArgs(prototype->getNumParams() + additional); in getFromProtoWithExtraSlots()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp667 unsigned NumParams = Block.getNumParams(); in getFragmentsForBlock()
735 for (unsigned i = 0, end = Func->getNumParams(); i != end; ++i) { in getFragmentsForFunction()
747 unsigned NumParams = Func->getNumParams(); in getFragmentsForFunction()
870 for (unsigned i = 0, end = Method->getNumParams(); i != end; ++i) { in getFragmentsForSpecialCXXMethod()
909 for (unsigned i = 0, end = Method->getNumParams(); i != end; ++i) { in getFragmentsForCXXMethod()
942 for (unsigned i = 0, end = ConversionFunction->getNumParams(); i != end; in getFragmentsForConversionFunction()
972 for (unsigned i = 0, end = Method->getNumParams(); i != end; ++i) { in getFragmentsForOverloadedOperator()
1360 unsigned numParameters = MI->getNumParams(); in getFragmentsForMacro()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h2748 return {ParamInfo, getNumParams()}; in parameters()
2751 return {ParamInfo, getNumParams()}; in parameters()
2768 unsigned getNumParams() const;
2771 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
2775 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
4667 return {ParamInfo, getNumParams()}; in parameters()
4670 return {ParamInfo, getNumParams()}; in parameters()
4684 unsigned getNumParams() const { return NumParams; } in getNumParams() function
4687 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
4691 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp594 if (FTyL->getNumParams() != FTyR->getNumParams()) in cmpTypes()
595 return cmpNumbers(FTyL->getNumParams(), FTyR->getNumParams()); in cmpTypes()
603 for (unsigned i = 0, e = FTyL->getNumParams(); i != e; ++i) { in cmpTypes()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp1795 unsigned NumParams = FD->getNumParams(); in printNestedNameSpecifier()
3398 if (proto->getNumParams() != 2 || proto->isVariadic()) in isReservedGlobalPlacementOperator()
3433 if (RequiredParameterCount == getNumParams()) in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3435 if (getNumParams() > RequiredParameterCount + 1) in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3446 if (FPT->getNumParams() == 0 || FPT->getNumParams() > 4) in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3451 if (FPT->getNumParams() == 1) in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3460 Ty = Params < FPT->getNumParams() ? FPT->getParamType(Params) : QualType(); in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3507 return Params == FPT->getNumParams(); in isUsableAsGlobalAllocationFunctionInConstantEvaluation()
3759 unsigned FunctionDecl::getNumParams() const { in getNumParams() function in FunctionDecl
3761 return FPT ? FPT->getNumParams() : 0; in getNumParams()
[all …]

1234567