/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
D | p5-generic-lambda-1y.cpp | 20 auto NumParams = [](auto Self, auto h, auto ... rest) -> unsigned { in __anon224c98610202() variable 26 overload<decltype(Base), decltype(NumParams)> O(Base, NumParams); 38 auto NumParams = [](auto Self, auto h, auto ... rest) { in __anon224c98610402() variable 44 overload<decltype(Base), decltype(NumParams)> O(Base, NumParams);
|
/external/clang/lib/AST/ |
D | DeclTemplate.cpp | 33 NamedDecl **Params, unsigned NumParams, in TemplateParameterList() argument 36 NumParams(NumParams), ContainsUnexpandedParameterPack(false) { in TemplateParameterList() 37 assert(this->NumParams == NumParams && "Too many template parameters"); in TemplateParameterList() 38 for (unsigned Idx = 0; Idx < NumParams; ++Idx) { in TemplateParameterList() 60 unsigned NumParams, SourceLocation RAngleLoc) { in Create() argument 61 void *Mem = C.Allocate(totalSizeToAlloc<NamedDecl *>(NumParams), in Create() 64 NumParams, RAngleLoc); in Create()
|
D | Type.cpp | 2671 NumParams(params.size()), in FunctionProtoType() 2676 assert(NumParams == params.size() && "function has too many parameters"); in FunctionProtoType() 2683 for (unsigned i = 0; i != NumParams; ++i) { in FunctionProtoType() 2697 QualType *exnSlot = argSlot + NumParams; in FunctionProtoType() 2712 Expr **noexSlot = reinterpret_cast<Expr **>(argSlot + NumParams); in FunctionProtoType() 2727 reinterpret_cast<FunctionDecl **>(argSlot + NumParams); in FunctionProtoType() 2736 reinterpret_cast<FunctionDecl **>(argSlot + NumParams); in FunctionProtoType() 2742 for (unsigned i = 0; i != NumParams; ++i) in FunctionProtoType() 2817 const QualType *ArgTys, unsigned NumParams, in Profile() argument 2839 for (unsigned i = 0; i != NumParams; ++i) in Profile() [all …]
|
D | Decl.cpp | 1455 unsigned NumParams = FD->getNumParams(); in printQualifiedName() local 1456 for (unsigned i = 0; i < NumParams; ++i) { in printQualifiedName() 1463 if (NumParams > 0) in printQualifiedName() 3755 NumParams = NewParamInfo.size(); in setParams() 3885 unsigned NumParams) { in Create() argument 3886 return new (C, DC, additionalSizeToAlloc<ImplicitParamDecl *>(NumParams)) in Create() 3887 CapturedDecl(DC, NumParams); in Create() 3891 unsigned NumParams) { in CreateDeserialized() argument 3892 return new (C, ID, additionalSizeToAlloc<ImplicitParamDecl *>(NumParams)) in CreateDeserialized() 3893 CapturedDecl(nullptr, NumParams); in CreateDeserialized()
|
D | ExprCXX.cpp | 1470 unsigned NumParams, in FunctionParmPackExpr() argument 1474 ParamPack(ParamPack), NameLoc(NameLoc), NumParameters(NumParams) { in FunctionParmPackExpr() 1476 std::uninitialized_copy(Params, Params + NumParams, in FunctionParmPackExpr() 1491 unsigned NumParams) { in CreateEmpty() argument 1493 sizeof(ParmVarDecl*) * NumParams)) in CreateEmpty()
|
D | DeclObjC.cpp | 771 NumParams = Params.size(); in setParamsAndSelLocs() 775 unsigned Size = sizeof(ParmVarDecl *) * NumParams + in setParamsAndSelLocs() 1316 : NumParams(typeParams.size()) in ObjCTypeParamList()
|
/external/clang/include/clang/AST/ |
D | Decl.h | 3485 unsigned NumParams; variable 3501 ParamInfo(nullptr), NumParams(0), Body(nullptr), in BlockDecl() 3534 bool param_empty() const { return NumParams == 0; } in param_empty() 3551 unsigned getNumParams() const { return NumParams; } in getNumParams() 3632 return NumParams; in numTrailingObjects() 3637 unsigned NumParams; 3643 explicit CapturedDecl(DeclContext *DC, unsigned NumParams) in CapturedDecl() argument 3645 NumParams(NumParams), ContextParam(0), BodyAndNothrow(nullptr, false) { } in CapturedDecl() 3657 unsigned NumParams); 3659 unsigned NumParams); [all …]
|
D | DeclTemplate.h | 59 unsigned NumParams : 31; in LLVM_ALIGNAS() local 67 return NumParams; in LLVM_ALIGNAS() 71 NamedDecl **Params, unsigned NumParams, in LLVM_ALIGNAS() 79 unsigned NumParams, in LLVM_ALIGNAS() 90 iterator end() { return begin() + NumParams; } in LLVM_ALIGNAS() 91 const_iterator end() const { return begin() + NumParams; } in LLVM_ALIGNAS() 93 unsigned size() const { return NumParams; } in LLVM_ALIGNAS() 2149 unsigned NumParams; 2167 NumParams(NParams), 2175 NumParams(0), [all …]
|
D | DeclObjC.h | 174 unsigned NumParams; variable 199 return reinterpret_cast<SourceLocation*>(getParams() + NumParams); in getStoredSelLocs() 202 return reinterpret_cast<const SourceLocation*>(getParams() + NumParams); in getStoredSelLocs() 242 NumParams(0), DeclEndLoc(endLoc), Body(), SelfDecl(nullptr), in NamedDecl() 348 unsigned param_size() const { return NumParams; } in param_size() 363 return param_const_iterator(getParams() + NumParams); in param_end() 366 param_iterator param_end() { return param_iterator(getParams() + NumParams); } in param_end() 378 NumParams); in parameters() 631 unsigned NumParams; variable 652 unsigned size() const { return NumParams; } in size()
|
/external/clang/lib/Sema/ |
D | DeclSpec.cpp | 156 unsigned NumParams, in getFunction() argument 196 I.Fun.NumParams = NumParams; in getFunction() 218 if (NumParams) { in getFunction() 224 NumParams <= llvm::array_lengthof(TheDeclarator.InlineParams)) { in getFunction() 229 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction() 232 memcpy(I.Fun.Params, Params, sizeof(Params[0]) * NumParams); in getFunction()
|
D | SemaTemplateDeduction.cpp | 108 const TemplateArgument *Params, unsigned NumParams, 769 const QualType *Params, unsigned NumParams, in DeduceTemplateArguments() argument 776 if (NumParams != NumArgs && in DeduceTemplateArguments() 777 !(NumParams && isa<PackExpansionType>(Params[NumParams - 1])) && in DeduceTemplateArguments() 787 for (; ParamIdx != NumParams; ++ParamIdx) { in DeduceTemplateArguments() 821 if (ParamIdx + 1 < NumParams) in DeduceTemplateArguments() 1825 const TemplateArgument *Params, unsigned NumParams, in DeduceTemplateArguments() argument 1833 if (hasPackExpansionBeforeEnd(Params, NumParams)) in DeduceTemplateArguments() 1841 for (; hasTemplateArgumentForDeduction(Params, ParamIdx, NumParams); in DeduceTemplateArguments() 3339 unsigned NumParams = Function->getNumParams(); in DeduceTemplateArguments() local [all …]
|
D | SemaLambda.cpp | 476 for (unsigned p = 0, NumParams = CallOperator->getNumParams(); in addLambdaParameters() local 477 p < NumParams; ++p) { in addLambdaParameters() 871 Params.reserve(FTI.NumParams); in ActOnStartOfLambdaDefinition() 872 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) in ActOnStartOfLambdaDefinition()
|
D | SemaDeclCXX.cpp | 393 for (unsigned argIdx = 0, e = chunk.Fun.NumParams; argIdx != e; in CheckExtraCXXDefaultArguments() 421 for (unsigned NumParams = FD->getNumParams(); NumParams > 0; --NumParams) { in functionDeclHasDefaultArgument() local 422 const ParmVarDecl *PVD = FD->getParamDecl(NumParams-1); in functionDeclHasDefaultArgument() 496 for (unsigned p = 0, NumParams = PrevForDefaultArgs in MergeCXXFunctionDecl() local 499 p < NumParams; ++p) { in MergeCXXFunctionDecl() 713 unsigned NumParams = FD->getNumParams(); in CheckCXXDefaultArguments() local 717 for (p = 0; p < NumParams; ++p) { in CheckCXXDefaultArguments() 730 for (; p < NumParams; ++p) { in CheckCXXDefaultArguments() 11450 unsigned NumParams = Proto->getNumParams(); in CompleteConstructorCall() local 11453 if (NumArgs < NumParams) in CompleteConstructorCall() [all …]
|
D | SemaType.cpp | 2820 if (!RT->isRecordType() && FTI.NumParams > 1) in warnAboutAmbiguousFunction() 2824 if (RT->isReferenceType() && FTI.NumParams != 1) in warnAboutAmbiguousFunction() 2844 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration in warnAboutAmbiguousFunction() 2867 if (FTI.NumParams > 0) { in warnAboutAmbiguousFunction() 3891 if (!FTI.NumParams && !FTI.isVariadic && !LangOpts.CPlusPlus) { in GetFullTypeForDeclarator() 3898 if (!FTI.NumParams && FTI.isVariadic && !LangOpts.CPlusPlus) { in GetFullTypeForDeclarator() 3912 if (FTI.NumParams && FTI.Params[0].Param == nullptr) { in GetFullTypeForDeclarator() 3935 ParamTys.reserve(FTI.NumParams); in GetFullTypeForDeclarator() 3938 ConsumedParameters.reserve(FTI.NumParams); in GetFullTypeForDeclarator() 3941 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) { in GetFullTypeForDeclarator() [all …]
|
D | SemaOverload.cpp | 5728 unsigned NumParams = Proto->getNumParams(); in AddOverloadCandidate() local 5733 if (TooManyArguments(NumParams, Args.size(), PartialOverloading) && in AddOverloadCandidate() 5769 if (ArgIdx < NumParams) { in AddOverloadCandidate() 6105 unsigned NumParams = Proto->getNumParams(); in AddMethodCandidate() local 6110 if (TooManyArguments(NumParams, Args.size(), PartialOverloading) && in AddMethodCandidate() 6160 if (ArgIdx < NumParams) { in AddMethodCandidate() 6598 unsigned NumParams = Proto->getNumParams(); in AddSurrogateCandidate() local 6603 if (Args.size() > NumParams && !Proto->isVariadic()) { in AddSurrogateCandidate() 6611 if (Args.size() < NumParams) { in AddSurrogateCandidate() 6621 if (ArgIdx < NumParams) { in AddSurrogateCandidate() [all …]
|
D | SemaDeclAttr.cpp | 274 unsigned NumParams = in checkFunctionOrMethodParameterIndex() local 287 if (Idx < 1 || (!IV && Idx > NumParams)) { in checkFunctionOrMethodParameterIndex() 547 unsigned int NumParams = FD->getNumParams(); in checkAttrArgsAreCapabilityObjs() local 551 if(!ArgValue.isStrictlyPositive() || ParamIdxFromOne > NumParams) { in checkAttrArgsAreCapabilityObjs() 553 << Attr.getName() << Idx + 1 << NumParams; in checkAttrArgsAreCapabilityObjs() 4485 llvm::APSInt NumParams(32); in handleMSP430InterruptAttr() local 4486 if (!NumParamsExpr->isIntegerConstantExpr(NumParams, S.Context)) { in handleMSP430InterruptAttr() 4493 unsigned Num = NumParams.getLimitedValue(255); in handleMSP430InterruptAttr() 4496 << Attr.getName() << (int)NumParams.getSExtValue() in handleMSP430InterruptAttr()
|
D | SemaExpr.cpp | 4452 unsigned NumParams = Proto->getNumParams(); in ConvertArgumentsForCall() local 4454 unsigned MinArgs = FDecl ? FDecl->getMinRequiredArguments() : NumParams; in ConvertArgumentsForCall() 4462 if (Args.size() < NumParams) { in ConvertArgumentsForCall() 4467 MinArgs == NumParams && !Proto->isVariadic() in ConvertArgumentsForCall() 4475 MinArgs == NumParams && !Proto->isVariadic() in ConvertArgumentsForCall() 4480 Diag(RParenLoc, MinArgs == NumParams && !Proto->isVariadic() in ConvertArgumentsForCall() 4493 Call->setNumArgs(Context, NumParams); in ConvertArgumentsForCall() 4498 if (Args.size() > NumParams) { in ConvertArgumentsForCall() 4503 MinArgs == NumParams && !Proto->isVariadic() in ConvertArgumentsForCall() 4506 diagnoseTypo(TC, PDiag(diag_id) << FnKind << NumParams in ConvertArgumentsForCall() [all …]
|
D | SemaStmt.cpp | 3762 unsigned NumParams) { in CreateCapturedStmtRecordDecl() argument 3779 assert(NumParams > 0 && "CapturedStmt requires context parameter"); in CreateCapturedStmtRecordDecl() 3780 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl() 3816 unsigned NumParams) { in ActOnCapturedRegionStart() argument 3818 RecordDecl *RD = CreateCapturedStmtRecordDecl(CD, Loc, NumParams); in ActOnCapturedRegionStart()
|
D | SemaExprCXX.cpp | 2147 unsigned NumParams = Param2.isNull() ? 1 : 2; in DeclareGlobalAllocationFunction() local 2156 if (Func->getNumParams() == NumParams) { in DeclareGlobalAllocationFunction() 2161 NumParams == 2 in DeclareGlobalAllocationFunction() 2167 (NumParams == 1 || InitialParam2Type == Param2)) { in DeclareGlobalAllocationFunction() 2202 Return, llvm::makeArrayRef(Params, NumParams), EPI); in DeclareGlobalAllocationFunction() 2218 for (unsigned I = 0; I != NumParams; ++I) { in DeclareGlobalAllocationFunction() 2225 Alloc->setParams(llvm::makeArrayRef(ParamDecls, NumParams)); in DeclareGlobalAllocationFunction()
|
/external/clang/include/clang/Sema/ |
D | SemaInternal.h | 31 return FTI.NumParams == 1 && !FTI.isVariadic && in FTIHasSingleVoidParameter() 39 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI); in FTIHasNonVoidParameters()
|
D | ParsedTemplate.h | 211 unsigned NumParams);
|
D | DeclSpec.h | 1224 unsigned NumParams; member 1288 for (unsigned I = 0; I < NumParams; ++I) { in freeParams() 1296 NumParams = 0; in freeParams() 1311 bool isKNRPrototype() const { return !hasPrototype && NumParams != 0; } in isKNRPrototype() 1495 ParamInfo *Params, unsigned NumParams,
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 136 unsigned NumParams = FT->getNumParams(); in checkStringCopyLibFuncSignature() local 147 --NumParams; // fallthrough in checkStringCopyLibFuncSignature() 150 if (NumParams != 3 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature() 157 --NumParams; // fallthrough in checkStringCopyLibFuncSignature() 160 if (NumParams != 2 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature() 167 --NumParams; // fallthrough in checkStringCopyLibFuncSignature() 170 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature() 176 --NumParams; // fallthrough in checkStringCopyLibFuncSignature() 178 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature() 185 if (NumParams == FT->getNumParams() - 1) in checkStringCopyLibFuncSignature()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 836 unsigned NumParams = Record[Idx++]; in VisitFunctionDecl() local 838 Params.reserve(NumParams); in VisitFunctionDecl() 839 for (unsigned I = 0; I != NumParams; ++I) in VisitFunctionDecl() 873 unsigned NumParams = Record[Idx++]; in VisitObjCMethodDecl() local 875 Params.reserve(NumParams); in VisitObjCMethodDecl() 876 for (unsigned I = 0; I != NumParams; ++I) in VisitObjCMethodDecl() 1251 unsigned NumParams = Record[Idx++]; in VisitBlockDecl() local 1253 Params.reserve(NumParams); in VisitBlockDecl() 1254 for (unsigned I = 0; I != NumParams; ++I) in VisitBlockDecl() 1283 for (unsigned I = 0; I < CD->NumParams; ++I) { in VisitCapturedDecl() [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 47 unsigned char NumParams; member 134 FTy->getNumParams() == FnData->NumParams && in getAllocationData()
|