Home
last modified time | relevance | path

Searched refs:ParamType (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-param-util.h62 template <class ParamType>
64 TestParamInfo(const ParamType& a_param, size_t an_index) in TestParamInfo()
66 ParamType param;
73 template <class ParamType>
74 std::string operator()(const TestParamInfo<ParamType>& info) const { in operator()
173 typedef T ParamType; typedef
381 template <class ParamType>
382 std::string DefaultParamName(const TestParamInfo<ParamType>& info) { in DefaultParamName()
400 typedef typename TestClass::ParamType ParamType; typedef
401 explicit ParameterizedTestFactory(ParamType parameter) in ParameterizedTestFactory()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersMacros.h74 #define AST_MATCHER_FUNCTION_P(ReturnType, DefineMatcher, ParamType, Param) \ argument
75 AST_MATCHER_FUNCTION_P_OVERLOAD(ReturnType, DefineMatcher, ParamType, Param, \
77 #define AST_MATCHER_FUNCTION_P_OVERLOAD(ReturnType, DefineMatcher, ParamType, \ argument
79 inline ReturnType DefineMatcher(ParamType const &Param); \
80 typedef ReturnType (&DefineMatcher##_Type##OverloadId)(ParamType const &); \
81 inline ReturnType DefineMatcher(ParamType const &Param)
128 #define AST_MATCHER_P(Type, DefineMatcher, ParamType, Param) \ argument
129 AST_MATCHER_P_OVERLOAD(Type, DefineMatcher, ParamType, Param, 0)
131 #define AST_MATCHER_P_OVERLOAD(Type, DefineMatcher, ParamType, Param, \ argument
138 ParamType const &A##Param) \
[all …]
H A DASTMatchers.h5191 QualType ParamType = FProto->getParamType(ParamIndex); in AST_POLYMORPHIC_MATCHER_P2() local
5192 if (ParamMatcher.matches(ParamType, Finder, &ParamMatches)) { in AST_POLYMORPHIC_MATCHER_P2()
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-param-test.h298 typedef typename std::iterator_traits<ForwardIterator>::value_type ParamType; in ValuesIn() typedef
299 return internal::ParamGenerator<ParamType>( in ValuesIn()
300 new internal::ValuesInIteratorRangeGenerator<ParamType>(begin, end)); in ValuesIn()
497 static ::testing::internal::ParamGenerator<test_suite_name::ParamType> \
502 const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \
506 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \
514 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \
H A Dgtest.h1691 typedef T ParamType; typedef
1696 static const ParamType& GetParam() { in GetParam()
1706 static void SetParam(const ParamType* parameter) { parameter_ = parameter; } in SetParam()
1709 static const ParamType* parameter_;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplate.cpp5928 QualType ParamType, Expr *Arg, in isNullPointerValueTemplateArgument() argument
5938 if (!S.isCompleteType(Arg->getExprLoc(), ParamType)) in isNullPointerValueTemplateArgument()
5989 if (S.Context.hasSameUnqualifiedType(Arg->getType(), ParamType) || in isNullPointerValueTemplateArgument()
5990 S.IsQualificationConversion(Arg->getType(), ParamType, false, in isNullPointerValueTemplateArgument()
5997 << Arg->getType() << ParamType << Arg->getSourceRange(); in isNullPointerValueTemplateArgument()
6007 << EvalResult.Val.getAsString(S.Context, ParamType); in isNullPointerValueTemplateArgument()
6015 std::string Code = "static_cast<" + ParamType.getAsString() + ">("; in isNullPointerValueTemplateArgument()
6017 << ParamType << FixItHint::CreateInsertion(Arg->getBeginLoc(), Code) in isNullPointerValueTemplateArgument()
6033 Sema &S, NonTypeTemplateParmDecl *Param, QualType ParamType, Expr *ArgIn, in CheckTemplateArgumentIsCompatibleWithParameter() argument
6036 if (ParamType->isPointerType() && in CheckTemplateArgumentIsCompatibleWithParameter()
[all …]
H A DSemaTemplateDeduction.cpp429 QualType ParamType = S.Context.getAdjustedParameterType(NTTP->getType()); in DeduceNonTypeTemplateArgument() local
430 if (auto *Expansion = dyn_cast<PackExpansionType>(ParamType)) in DeduceNonTypeTemplateArgument()
431 ParamType = Expansion->getPattern(); in DeduceNonTypeTemplateArgument()
438 if (ParamType->isReferenceType()) in DeduceNonTypeTemplateArgument()
439 ParamType = ParamType.getNonReferenceType(); in DeduceNonTypeTemplateArgument()
445 S, TemplateParams, ParamType, ValueType, Info, Deduced, in DeduceNonTypeTemplateArgument()
1312 static bool hasInconsistentOrSupersetQualifiersOf(QualType ParamType, in hasInconsistentOrSupersetQualifiersOf() argument
1314 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf()
4038 Expr *Arg, QualType ParamType, in ResolveOverloadForDeduction() argument
4057 if (!ParamType->isFunctionType() && in ResolveOverloadForDeduction()
[all …]
H A DSemaCodeComplete.cpp3709 QualType ParamType = (*P)->getType(); in createCodeCompletionStringForDecl() local
3714 if (ParamType->isBlockPointerType() && !DeclaringEntity) in createCodeCompletionStringForDecl()
3719 ParamType = ParamType.substObjCTypeArgs( in createCodeCompletionStringForDecl()
3722 ParamType); in createCodeCompletionStringForDecl()
3723 Arg += ParamType.getAsString(Policy) + ")"; in createCodeCompletionStringForDecl()
6138 QualType ParamType; in getParamType() local
6143 if (ParamType.isNull()) { in getParamType()
6144 ParamType = CandidateParamType; in getParamType()
6148 ParamType.getNonReferenceType(), in getParamType()
6154 return ParamType; in getParamType()
[all …]
H A DSemaDeclCXX.cpp4808 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitBaseInitializer() local
4813 Constructor->getLocation(), ParamType, in BuildImplicitBaseInitializer()
4821 ParamType.getQualifiers()); in BuildImplicitBaseInitializer()
4878 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitMemberInitializer() local
4887 Loc, ParamType, VK_LValue, nullptr); in BuildImplicitMemberInitializer()
4904 ParamType, Loc, in BuildImplicitMemberInitializer()
10823 QualType ParamType = Constructor->getParamDecl(0)->getType(); in CheckConstructor() local
10825 if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) { in CheckConstructor()
10860 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in CheckDestructor() local
10861 if (!declaresSameEntity(ParamType in CheckDestructor()
16316 QualType ParamType = Param->getType().getNonReferenceType(); CheckOverloadedOperatorDeclaration() local
16433 QualType ParamType = LastParam->getType(); CheckOverloadedOperatorDeclaration() local
16540 QualType ParamType = Param->getType().getUnqualifiedType(); CheckLiteralOperatorDeclaration() local
[all...]
H A DSemaStmt.cpp4476 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4478 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4515 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)) in ActOnCapturedRegionStart() local
4519 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4537 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4539 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
H A DSemaType.cpp2615 QualType ParamType = Context.getAdjustedParameterType(ParamTypes[Idx]); in BuildFunctionType() local
2616 if (ParamType->isVoidType()) { in BuildFunctionType()
2619 } else if (ParamType->isHalfType() && !getLangOpts().NativeHalfArgsAndReturns && in BuildFunctionType()
2625 } else if (ParamType->isWebAssemblyTableType()) { in BuildFunctionType()
2632 if (ParamType.isVolatileQualified() && getLangOpts().CPlusPlus20) in BuildFunctionType()
2633 Diag(Loc, diag::warn_deprecated_volatile_param) << ParamType; in BuildFunctionType()
2635 ParamTypes[Idx] = ParamType; in BuildFunctionType()
H A DSemaOverload.cpp7008 QualType ParamType = Proto->getParamType(ArgIdx); in AddOverloadCandidate() local
7010 *this, Args[ArgIdx], ParamType, SuppressUserConversions, in AddOverloadCandidate()
7530 QualType ParamType; in AddMethodCandidate() local
7532 ParamType = ArgIdx == 0 in AddMethodCandidate()
7536 ParamType = Proto->getParamType(ArgIdx + ExplicitOffset); in AddMethodCandidate()
7539 = TryCopyInitialization(*this, Args[ArgIdx], ParamType, in AddMethodCandidate()
7769 QualType ParamType = ParamTypes[I + Offset]; in CheckNonDependentConversions() local
7770 if (!ParamType->isDependentType()) { in CheckNonDependentConversions()
7785 = TryCopyInitialization(*this, Args[I], ParamType, in CheckNonDependentConversions()
8176 QualType ParamType = Proto->getParamType(ArgIdx); in AddSurrogateCandidate() local
[all …]
H A DSemaChecking.cpp7981 QualType ParamType = getAbsoluteValueArgumentType(Context, Kind); in getBestAbsFunction() local
7982 if (Context.getTypeSize(ParamType) >= ArgSize) { in getBestAbsFunction()
7985 else if (Context.hasSameType(ParamType, ArgType)) { in getBestAbsFunction()
8146 QualType ParamType = FDecl->getParamDecl(0)->getType(); in emitReplacement() local
8147 if (getAbsoluteValueKind(ArgType) == getAbsoluteValueKind(ParamType) && in emitReplacement()
8149 S.Context.getTypeSize(ParamType)) { in emitReplacement()
8232 QualType ParamType = Call->getArg(0)->getType(); in CheckAbsoluteValueFunction() local
8239 Diag(Call->getExprLoc(), diag::warn_unsigned_abs) << ArgType << ParamType; in CheckAbsoluteValueFunction()
8265 AbsoluteValueKind ParamValueKind = getAbsoluteValueKind(ParamType); in CheckAbsoluteValueFunction()
8270 if (Context.getTypeSize(ArgType) <= Context.getTypeSize(ParamType)) in CheckAbsoluteValueFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp136 Type *ParamType = *PI; in createWrapper() local
138 if (ArgType == ParamType) { in createWrapper()
141 if (CastInst::isBitOrNoopPointerCastable(ArgType, ParamType, DL)) { in createWrapper()
143 CastInst::CreateBitOrPointerCast(AI, ParamType, "cast"); in createWrapper()
146 } else if (ArgType->isStructTy() || ParamType->isStructTy()) { in createWrapper()
154 << *ParamType << " Got: " << *ArgType << "\n"); in createWrapper()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.h26 enum ParamType { enum
136 SmallVector<ParamType, 32> ParamtersType;
254 void appendParameterType(ParamType Type);
H A DPPCMachineFunctionInfo.cpp76 void PPCFunctionInfo::appendParameterType(ParamType Type) { in appendParameterType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp2516 QualType ParamType = getNonObjectParameter(0)->getType(); in isCopyAssignmentOperator() local
2517 if (const auto *Ref = ParamType->getAs<LValueReferenceType>()) in isCopyAssignmentOperator()
2518 ParamType = Ref->getPointeeType(); in isCopyAssignmentOperator()
2523 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isCopyAssignmentOperator()
2536 QualType ParamType = getNonObjectParameter(0)->getType(); in isMoveAssignmentOperator() local
2537 if (!ParamType->isRValueReferenceType()) in isMoveAssignmentOperator()
2539 ParamType = ParamType->getPointeeType(); in isMoveAssignmentOperator()
2544 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isMoveAssignmentOperator()
2875 CanQualType ParamType = Context.getCanonicalType(Param->getType()); in isSpecializationCopyingObject() local
2880 if (ParamType.getUnqualifiedType() != ClassTy) in isSpecializationCopyingObject()
H A DODRHash.cpp1059 for (auto ParamType : T->getParamTypes()) in VisitFunctionProtoType() local
1060 AddQualType(ParamType); in VisitFunctionProtoType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSystemZ.cpp528 for (const auto &ParamType : Proto->getParamTypes()) in isVectorTypeBased() local
529 if (isVectorTypeBased(ParamType.getTypePtr(), /*IsParam*/true)) in isVectorTypeBased()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp2248 static bool canApplyNoFPClass(const ABIArgInfo &AI, QualType ParamType, in canApplyNoFPClass() argument
2251 if (!ParamType->hasFloatingRepresentation()) in canApplyNoFPClass()
2676 QualType ParamType = I->type; in ConstructAttributeList() local
2692 DetermineNoUndef(ParamType, getTypes(), DL, AI)) { in ConstructAttributeList()
2713 if (canApplyNoFPClass(AI, ParamType, false)) in ConstructAttributeList()
2721 Attrs.addByValAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2723 auto *Decl = ParamType->getAsRecordDecl(); in ConstructAttributeList()
2759 Attrs.addByRefAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2774 if (const auto *RefTy = ParamType->getAs<ReferenceType>()) { in ConstructAttributeList()
2784 getNaturalPointeeTypeAlignment(ParamType).getAsAlign(); in ConstructAttributeList()
[all …]
H A DCGDebugInfo.cpp1592 for (const QualType &ParamType : FPT->param_types()) in CreateType() local
1593 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
4341 for (QualType ParamType : FPT->param_types()) in getOrCreateFunctionType() local
4342 EltTys.push_back(getOrCreateType(ParamType, F)); in getOrCreateFunctionType()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp402 QualType ParamType = Parameter->getType(); in processArgument() local
414 if (isTransparentUnion(ParamType) && in processArgument()
423 return SVB.makeCompoundVal(ParamType, CompoundSVals); in processArgument()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp376 for (auto ParamType : Sig.ParamTypes) in writeSectionContent() local
377 writeUint8(OS, ParamType); in writeSectionContent()
/freebsd/contrib/googletest/docs/reference/
H A Dtesting.md118 [`TestParamInfo<class ParamType>`](#TestParamInfo) and return a `std::string`.
127 [](const testing::TestParamInfo<MyTestSuite::ParamType>& info) {
1315 This interface defines the type alias `ParamType` for the parameter type `T` and
1319 static const ParamType& GetParam()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWasmObjectFile.cpp1244 uint32_t ParamType = readUint8(Ctx); in parseTypeSection() local
1245 Sig.Params.push_back(parseValType(Ctx, ParamType)); in parseTypeSection()

12