/external/llvm-project/clang/include/clang/AST/ |
D | Attr.h | 213 class ParamIdx { 219 void assertComparable(const ParamIdx &I) const { in assertComparable() 233 ParamIdx() : Idx(0), HasThis(false), IsValid(false) {} in ParamIdx() function 241 ParamIdx(unsigned Idx, const Decl *D) in ParamIdx() function 261 static ParamIdx deserialize(SerialType S) { in deserialize() 265 ParamIdx P(*static_cast<ParamIdx *>(ParamIdxPtr)); in deserialize() 307 bool operator==(const ParamIdx &I) const { 311 bool operator!=(const ParamIdx &I) const { 315 bool operator<(const ParamIdx &I) const { 319 bool operator>(const ParamIdx &I) const { [all …]
|
/external/llvm-project/llvm/utils/TableGen/ |
D | CodeGenIntrinsics.h | 192 bool isParamAPointer(unsigned ParamIdx) const; 194 bool isParamImmArg(unsigned ParamIdx) const;
|
D | CodeGenTarget.cpp | 892 bool CodeGenIntrinsic::isParamAPointer(unsigned ParamIdx) const { in isParamAPointer() 893 if (ParamIdx >= IS.ParamVTs.size()) in isParamAPointer() 895 MVT ParamType = MVT(IS.ParamVTs[ParamIdx]); in isParamAPointer() 899 bool CodeGenIntrinsic::isParamImmArg(unsigned ParamIdx) const { in isParamImmArg() 901 ArgAttribute Val{ParamIdx + 1, ImmArg, 0}; in isParamImmArg()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | PassByValueCheck.cpp | 114 unsigned ParamIdx = ParamDecl->getFunctionScopeIndex(); in collectParamDecls() local 117 Results.push_back(Redecl->getParamDecl(ParamIdx)); in collectParamDecls()
|
/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 782 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local 783 for (; ParamIdx != NumParams; ++ParamIdx) { in DeduceTemplateArguments() 786 = dyn_cast<PackExpansionType>(Params[ParamIdx]); in DeduceTemplateArguments() 804 Params[ParamIdx], Args[ArgIdx], in DeduceTemplateArguments() 817 if (ParamIdx + 1 < NumParams) in DeduceTemplateArguments() 1853 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local 1854 for (; hasTemplateArgumentForDeduction(Params, ParamIdx, NumParams); in DeduceTemplateArguments() 1855 ++ParamIdx) { in DeduceTemplateArguments() 1856 if (!Params[ParamIdx].isPackExpansion()) { in DeduceTemplateArguments() 1873 Params[ParamIdx], Args[ArgIdx], in DeduceTemplateArguments() [all …]
|
D | SemaTemplate.cpp | 1798 unsigned ParamIdx = 0; in MatchTemplateParametersToScopeSpecifier() local 1866 if (ParamIdx < ParamLists.size()) { in MatchTemplateParametersToScopeSpecifier() 1867 if (ParamLists[ParamIdx]->size() == 0) { in MatchTemplateParametersToScopeSpecifier() 1868 if (CheckExplicitSpecialization(ParamLists[ParamIdx]->getSourceRange(), in MatchTemplateParametersToScopeSpecifier() 1881 if (ParamIdx < ParamLists.size()) { in MatchTemplateParametersToScopeSpecifier() 1882 if (ParamLists[ParamIdx]->size() > 0) { in MatchTemplateParametersToScopeSpecifier() 1884 Diag(ParamLists[ParamIdx]->getTemplateLoc(), in MatchTemplateParametersToScopeSpecifier() 1887 << SourceRange(ParamLists[ParamIdx]->getLAngleLoc(), in MatchTemplateParametersToScopeSpecifier() 1888 ParamLists[ParamIdx]->getRAngleLoc()) in MatchTemplateParametersToScopeSpecifier() 1895 ++ParamIdx; in MatchTemplateParametersToScopeSpecifier() [all …]
|
/external/llvm-project/clang/lib/Analysis/ |
D | BodyFarm.cpp | 406 for (unsigned int ParamIdx = 2; ParamIdx < D->getNumParams(); ParamIdx++) { in create_call_once() local 407 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() 409 if (CallbackFunctionType->getParamType(ParamIdx - 2) in create_call_once() 419 if (!CallbackFunctionType->getParamType(ParamIdx - 2)->isReferenceType()) { in create_call_once()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 1045 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local 1046 for (; ParamIdx != NumParams; ++ParamIdx) { in DeduceTemplateArguments() 1049 = dyn_cast<PackExpansionType>(Params[ParamIdx]); in DeduceTemplateArguments() 1067 Params[ParamIdx], Args[ArgIdx], in DeduceTemplateArguments() 1088 if (ParamIdx + 1 == NumParams || PackScope.hasFixedArity()) { in DeduceTemplateArguments() 2498 unsigned ArgIdx = 0, ParamIdx = 0; in DeduceTemplateArguments() local 2499 for (; hasTemplateArgumentForDeduction(Params, ParamIdx); ++ParamIdx) { in DeduceTemplateArguments() 2500 if (!Params[ParamIdx].isPackExpansion()) { in DeduceTemplateArguments() 2518 Params[ParamIdx], Args[ArgIdx], in DeduceTemplateArguments() 2534 TemplateArgument Pattern = Params[ParamIdx].getPackExpansionPattern(); in DeduceTemplateArguments() [all …]
|
D | SemaTemplate.cpp | 3170 unsigned ParamIdx = 0; in MatchTemplateParametersToScopeSpecifier() local 3238 if (ParamIdx < ParamLists.size()) { in MatchTemplateParametersToScopeSpecifier() 3239 if (ParamLists[ParamIdx]->size() == 0) { in MatchTemplateParametersToScopeSpecifier() 3240 if (CheckExplicitSpecialization(ParamLists[ParamIdx]->getSourceRange(), in MatchTemplateParametersToScopeSpecifier() 3253 if (ParamIdx < ParamLists.size()) { in MatchTemplateParametersToScopeSpecifier() 3254 if (ParamLists[ParamIdx]->size() > 0) { in MatchTemplateParametersToScopeSpecifier() 3257 Diag(ParamLists[ParamIdx]->getTemplateLoc(), in MatchTemplateParametersToScopeSpecifier() 3260 << SourceRange(ParamLists[ParamIdx]->getLAngleLoc(), in MatchTemplateParametersToScopeSpecifier() 3261 ParamLists[ParamIdx]->getRAngleLoc()) in MatchTemplateParametersToScopeSpecifier() 3268 ++ParamIdx; in MatchTemplateParametersToScopeSpecifier() [all …]
|
D | SemaDeclAttr.cpp | 328 const Expr *IdxExpr, ParamIdx &Idx, bool CanIndexImplicitThis = false) { in checkFunctionOrMethodParameterIndex() 362 Idx = ParamIdx(IdxSource, D); in checkFunctionOrMethodParameterIndex() 851 ParamIdx Idx; in checkParamIsIntegerType() 884 ParamIdx SizeArgNo(SizeArgNoVal, D); in handleAllocSizeAttr() 886 ParamIdx NumberArgNo; in handleAllocSizeAttr() 895 NumberArgNo = ParamIdx(Val, D); in handleAllocSizeAttr() 1500 SmallVector<ParamIdx, 8> NonNullArgs; in handleNonNullAttr() 1503 ParamIdx Idx; in handleNonNullAttr() 1536 ParamIdx *Start = NonNullArgs.data(); in handleNonNullAttr() 1650 AllocAlignAttr TmpAttr(Context, CI, ParamIdx()); in AddAllocAlignAttr() [all …]
|
D | SemaDeclCXX.cpp | 1571 unsigned ParamIdx = 0; in CheckCXXDefaultArguments() local 1583 for (; ParamIdx < NumParams; ++ParamIdx) { in CheckCXXDefaultArguments() 1584 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments() 1594 for (; ParamIdx < NumParams; ++ParamIdx) { in CheckCXXDefaultArguments() 1595 ParmVarDecl *Param = FD->getParamDecl(ParamIdx); in CheckCXXDefaultArguments()
|
D | SemaOverload.cpp | 11564 for (unsigned ParamIdx = Reversed ? ParamTypes.size() - 1 : 0; in CompleteNonViableCandidate() local 11566 ++ConvIdx, ++ArgIdx, ParamIdx += (Reversed ? -1 : 1)) { in CompleteNonViableCandidate() 11570 } else if (ParamIdx < ParamTypes.size()) { in CompleteNonViableCandidate() 11571 if (ParamTypes[ParamIdx]->isDependentType()) in CompleteNonViableCandidate() 11576 TryCopyInitialization(S, Args[ArgIdx], ParamTypes[ParamIdx], in CompleteNonViableCandidate()
|
D | SemaDecl.cpp | 14823 Context, /*ElemSizeParam=*/ParamIdx(1, FD), in AddKnownFunctionAttributesForReplaceableGlobalAllocationFunction() 14824 /*NumElemsParam=*/ParamIdx(), FD->getLocation())); in AddKnownFunctionAttributesForReplaceableGlobalAllocationFunction() 14835 Context, ParamIdx(AlignmentParam.getValue(), FD), FD->getLocation())); in AddKnownFunctionAttributesForReplaceableGlobalAllocationFunction() 14989 FD->addAttr(FormatArgAttr::CreateImplicit(Context, ParamIdx(1, FD), in AddKnownFunctionAttributes()
|
D | SemaChecking.cpp | 4374 for (const ParamIdx &Idx : NonNull->args()) { in CheckNonNullArguments() 12799 for (const ParamIdx &ArgNo : NonNull->args()) { in DiagnoseAlwaysNonNullPointer()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | NullabilityChecker.cpp | 703 unsigned ParamIdx = Param->getFunctionScopeIndex() + 1; in checkPreCall() local 714 OS << "Null passed to a callee that requires a non-null " << ParamIdx in checkPreCall() 715 << llvm::getOrdinalSuffix(ParamIdx) << " parameter"; in checkPreCall() 741 << ParamIdx << llvm::getOrdinalSuffix(ParamIdx) << " parameter"; in checkPreCall()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | NullabilityChecker.cpp | 719 unsigned ParamIdx = Param->getFunctionScopeIndex() + 1; in checkPreCall() local 733 OS << " passed to a callee that requires a non-null " << ParamIdx in checkPreCall() 734 << llvm::getOrdinalSuffix(ParamIdx) << " parameter"; in checkPreCall() 760 << ParamIdx << llvm::getOrdinalSuffix(ParamIdx) << " parameter"; in checkPreCall()
|
D | NonNullParamChecker.cpp | 62 for (const ParamIdx &Idx : NonNull->args()) { in setBitsAccordingToFunctionAttributes()
|
/external/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 1973 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) { in HandleMemberFunctionDeclDelays() local 1974 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param); in HandleMemberFunctionDeclDelays() 1996 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) in HandleMemberFunctionDeclDelays() local 1998 FTI.Params[ParamIdx].Param, FTI.Params[ParamIdx].DefaultArgTokens)); in HandleMemberFunctionDeclDelays()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 2181 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) { in HandleMemberFunctionDeclDelays() local 2182 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param); in HandleMemberFunctionDeclDelays() 2200 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) in HandleMemberFunctionDeclDelays() local 2202 FTI.Params[ParamIdx].Param, in HandleMemberFunctionDeclDelays() 2203 std::move(FTI.Params[ParamIdx].DefaultArgTokens))); in HandleMemberFunctionDeclDelays()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Attr.td | 209 // Like VariadicUnsignedArgument except values are ParamIdx. 212 // A list of identifiers matching parameters or ParamIdx indices. 1769 [=](const ParamIdx &Idx) { return Idx.getASTIndex() == IdxAST; });
|