/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateVariadic.cpp | 631 std::optional<unsigned> NumExpansions) { in CheckPackExpansion() argument 635 EllipsisLoc, NumExpansions); in CheckPackExpansion() 649 std::optional<unsigned> NumExpansions) { in CheckPackExpansion() argument 664 return Context.getPackExpansionType(Pattern, NumExpansions, in CheckPackExpansion() 673 std::optional<unsigned> NumExpansions) { in CheckPackExpansion() argument 690 PackExpansionExpr(Context.DependentTy, Pattern, EllipsisLoc, NumExpansions); in CheckPackExpansion() 697 bool &RetainExpansion, std::optional<unsigned> &NumExpansions) { in CheckParameterPacksForExpansion() argument 777 if (!NumExpansions) { in CheckParameterPacksForExpansion() 780 NumExpansions = NewPackSize; in CheckParameterPacksForExpansion() 787 if (NewPackSize != *NumExpansions) { in CheckParameterPacksForExpansion() [all …]
|
H A D | SemaConcept.cpp | 274 std::optional<unsigned> NumExpansions = in calculateConstraintSatisfaction() local 276 if (!NumExpansions) in calculateConstraintSatisfaction() 278 for (unsigned I = 0; I < *NumExpansions; I++) { in calculateConstraintSatisfaction() 546 NumExpansions = OrigNumExpansions; in calculateConstraintSatisfaction() local 549 MLTAL, Expand, RetainExpansion, NumExpansions) || in calculateConstraintSatisfaction() 553 if (NumExpansions && S.getLangOpts().BracketDepth < NumExpansions) { in calculateConstraintSatisfaction() 556 << *NumExpansions << S.getLangOpts().BracketDepth in calculateConstraintSatisfaction() 561 return NumExpansions; in calculateConstraintSatisfaction()
|
H A D | TreeTransform.h | 291 std::optional<unsigned> &NumExpansions) { in TryExpandParameterPacks() argument 766 std::optional<unsigned> NumExpansions, 1271 std::optional<unsigned> NumExpansions) { in RebuildPackExpansionType() argument 1273 NumExpansions); in RebuildPackExpansionType() 3942 std::optional<unsigned> NumExpansions) { in RebuildPackExpansion() argument 3947 EllipsisLoc, NumExpansions); in RebuildPackExpansion() 3958 NumExpansions), in RebuildPackExpansion() 3975 NumExpansions)) in RebuildPackExpansion() 3990 std::optional<unsigned> NumExpansions) { in RebuildPackExpansion() argument 3991 return getSema().CheckPackExpansion(Pattern, EllipsisLoc, NumExpansions); in RebuildPackExpansion() [all …]
|
H A D | SemaTemplateInstantiateDecl.cpp | 133 std::optional<unsigned> NumExpansions; in instantiateDependentAlignedAttr() local 138 RetainExpansion, NumExpansions)) in instantiateDependentAlignedAttr() 145 for (unsigned I = 0; I != *NumExpansions; ++I) { in instantiateDependentAlignedAttr() 3022 std::optional<unsigned> NumExpansions = OrigNumExpansions; in VisitNonTypeTemplateParmDecl() local 3028 NumExpansions)) in VisitNonTypeTemplateParmDecl() 3032 for (unsigned I = 0; I != *NumExpansions; ++I) { in VisitNonTypeTemplateParmDecl() 3067 NumExpansions); in VisitNonTypeTemplateParmDecl() 3193 std::optional<unsigned> NumExpansions; in VisitTemplateTemplateParmDecl() local 3199 NumExpansions)) in VisitTemplateTemplateParmDecl() 3203 for (unsigned I = 0; I != *NumExpansions; ++I) { in VisitTemplateTemplateParmDecl() [all …]
|
H A D | SemaTemplateInstantiate.cpp | 1395 std::optional<unsigned> &NumExpansions) { in TryExpandParameterPacks() argument 1401 NumExpansions); in TryExpandParameterPacks() 1617 std::optional<unsigned> NumExpansions, 2419 std::optional<unsigned> NumExpansions, bool ExpectParameterPack) { in TransformFunctionTypeParam() argument 2421 OldParm, TemplateArgs, indexAdjustment, NumExpansions, in TransformFunctionTypeParam() 3070 int indexAdjustment, std::optional<unsigned> NumExpansions, in SubstParmVarDecl() argument 3090 NumExpansions); in SubstParmVarDecl() 3323 std::optional<unsigned> NumExpansions; in SubstBaseSpecifiers() local 3329 NumExpansions)) { in SubstBaseSpecifiers() 3336 for (unsigned I = 0; I != *NumExpansions; ++I) { in SubstBaseSpecifiers()
|
H A D | SemaTemplateDeduction.cpp | 1276 std::optional<unsigned> NumExpansions = Expansion->getNumExpansions(); in DeduceTemplateArguments() local 1277 if (NumExpansions && !PackScope.isPartiallyExpanded()) { in DeduceTemplateArguments() 1278 for (unsigned I = 0; I != *NumExpansions && ArgIdx < NumArgs; in DeduceTemplateArguments() 3751 unsigned NumExpansions = in getPackIndexForParam() local 3753 if (Idx + NumExpansions > ParamIdx) in getPackIndexForParam() 3755 Idx += NumExpansions; in getPackIndexForParam() 4521 std::optional<unsigned> NumExpansions = in DeduceTemplateArguments() local 4523 if (NumExpansions && !PackScope.isPartiallyExpanded()) { in DeduceTemplateArguments() 4524 for (unsigned I = 0; I != *NumExpansions && ArgIdx < Args.size(); in DeduceTemplateArguments()
|
H A D | SemaLambda.cpp | 785 std::optional<unsigned> NumExpansions, IdentifierInfo *Id, in buildLambdaInitCaptureInitialization() argument 803 DeductType = Context.getPackExpansionType(DeductType, NumExpansions, in buildLambdaInitCaptureInitialization()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TemplateBase.h | 162 unsigned NumExpansions; 235 TemplateArg.NumExpansions = 0; 252 TemplateArgument(TemplateName Name, std::optional<unsigned> NumExpansions, 257 if (NumExpansions) 258 TemplateArg.NumExpansions = *NumExpansions + 1; 260 TemplateArg.NumExpansions = 0;
|
H A D | ExprCXX.h | 4190 unsigned NumExpansions; variable 4196 std::optional<unsigned> NumExpansions) in PackExpansionExpr() argument 4200 NumExpansions(NumExpansions ? *NumExpansions + 1 : 0), in PackExpansionExpr() 4220 if (NumExpansions) in getNumExpansions() 4221 return NumExpansions - 1; in getNumExpansions() 4850 unsigned NumExpansions; variable 4858 std::optional<unsigned> NumExpansions) in CXXFoldExpr() argument 4861 NumExpansions(NumExpansions ? *NumExpansions + 1 : 0), Opcode(Opcode) { in CXXFoldExpr() 4896 if (NumExpansions) in getNumExpansions() 4897 return NumExpansions - 1; in getNumExpansions()
|
H A D | Type.h | 2226 unsigned NumExpansions; 6963 std::optional<unsigned> NumExpansions) 6969 PackExpansionTypeBits.NumExpansions = 6970 NumExpansions ? *NumExpansions + 1 : 0; 6982 if (PackExpansionTypeBits.NumExpansions) 6983 return PackExpansionTypeBits.NumExpansions - 1; 6995 std::optional<unsigned> NumExpansions) { 6997 ID.AddBoolean(NumExpansions.has_value()); 6998 if (NumExpansions) 6999 ID.AddInteger(*NumExpansions);
|
H A D | DeclCXX.h | 3807 unsigned NumExpansions; variable 3816 InstantiatedFrom(InstantiatedFrom), NumExpansions(UsingDecls.size()) { in UsingPackDecl() 3836 return llvm::ArrayRef(getTrailingObjects<NamedDecl *>(), NumExpansions); in expansions() 3844 unsigned NumExpansions);
|
H A D | ASTContext.h | 1737 std::optional<unsigned> NumExpansions,
|
H A D | DeclTemplate.h | 1636 CreateDeserialized(ASTContext &C, GlobalDeclID ID, unsigned NumExpansions);
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TemplateBase.cpp | 352 if (TemplateArg.NumExpansions) in getNumTemplateExpansions() 353 return TemplateArg.NumExpansions - 1; in getNumTemplateExpansions() 407 ID.AddInteger(TemplateArg.NumExpansions); in Profile() 447 TemplateArg.NumExpansions == Other.TemplateArg.NumExpansions; in structurallyEquals()
|
H A D | ExprObjC.cpp | 68 if (VK[I].NumExpansions) in ObjCDictionaryLiteral() 69 Expansions[I].NumExpansionsPlusOne = *VK[I].NumExpansions + 1; in ObjCDictionaryLiteral()
|
H A D | DeclCXX.cpp | 3240 unsigned NumExpansions) { in CreateDeserialized() argument 3241 size_t Extra = additionalSizeToAlloc<NamedDecl *>(NumExpansions); in CreateDeserialized() 3244 Result->NumExpansions = NumExpansions; in CreateDeserialized() 3246 for (unsigned I = 0; I != NumExpansions; ++I) in CreateDeserialized()
|
H A D | DeclTemplate.cpp | 862 unsigned NumExpansions) { in CreateDeserialized() argument 864 new (C, ID, additionalSizeToAlloc<TemplateParameterList *>(NumExpansions)) in CreateDeserialized() 867 TTP->NumExpandedParams = NumExpansions; in CreateDeserialized()
|
H A D | ASTContext.cpp | 5626 std::optional<unsigned> NumExpansions, in getPackExpansionType() argument 5632 PackExpansionType::Profile(ID, Pattern, NumExpansions); in getPackExpansionType() 5641 Canon = getPackExpansionType(getCanonicalType(Pattern), NumExpansions, in getPackExpansionType() 5650 PackExpansionType(Pattern, Canon, NumExpansions); in getPackExpansionType()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriterStmt.cpp | 1424 unsigned NumExpansions = 0; in VisitObjCDictionaryLiteral() local 1425 if (Element.NumExpansions) in VisitObjCDictionaryLiteral() 1426 NumExpansions = *Element.NumExpansions + 1; in VisitObjCDictionaryLiteral() 1427 Record.push_back(NumExpansions); in VisitObjCDictionaryLiteral() 2160 Record.push_back(E->NumExpansions); in VisitPackExpansionExpr() 2246 Record.push_back(E->NumExpansions); in VisitCXXFoldExpr()
|
H A D | ASTReaderStmt.cpp | 2162 E->NumExpansions = Record.readInt(); in VisitPackExpansionExpr() 2249 E->NumExpansions = Record.readInt(); in VisitCXXFoldExpr()
|
H A D | ASTWriterDecl.cpp | 1429 Record.push_back(D->NumExpansions); in VisitUsingPackDecl()
|
H A D | ASTReaderDecl.cpp | 1902 for (unsigned I = 0; I != D->NumExpansions; ++I) in VisitUsingPackDecl()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 8784 std::optional<unsigned> NumExpansions, IdentifierInfo *Id, 13289 int indexAdjustment, std::optional<unsigned> NumExpansions, 14111 std::optional<unsigned> NumExpansions); 14117 std::optional<unsigned> NumExpansions); 14136 std::optional<unsigned> NumExpansions); 14176 bool &RetainExpansion, std::optional<unsigned> &NumExpansions); 14215 std::optional<unsigned> &NumExpansions) const; 14265 std::optional<unsigned> NumExpansions);
|