Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-param-util.h55 template <class ParamType>
57 TestParamInfo(const ParamType& a_param, size_t an_index) : in TestParamInfo()
60 ParamType param;
67 template <class ParamType>
68 std::string operator()(const TestParamInfo<ParamType>& info) const { in operator()
166 typedef T ParamType; typedef
373 template <class ParamType>
374 std::string DefaultParamName(const TestParamInfo<ParamType>& info) { in DefaultParamName()
394 typedef typename TestClass::ParamType ParamType; typedef
395 explicit ParameterizedTestFactory(ParamType parameter) : in ParameterizedTestFactory()
[all …]
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/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()
461 static ::testing::internal::ParamGenerator<test_suite_name::ParamType> \
466 const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \
470 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \
478 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \
H A Dgtest.h1851 typedef T ParamType; typedef
1856 static const ParamType& GetParam() { in GetParam()
1866 static void SetParam(const ParamType* parameter) { in SetParam()
1871 static const ParamType* parameter_;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaTemplate.cpp6248 QualType ParamType, Expr *Arg, in isNullPointerValueTemplateArgument() argument
6258 if (!S.isCompleteType(Arg->getExprLoc(), ParamType)) in isNullPointerValueTemplateArgument()
6309 if (S.Context.hasSameUnqualifiedType(Arg->getType(), ParamType) || in isNullPointerValueTemplateArgument()
6310 S.IsQualificationConversion(Arg->getType(), ParamType, false, in isNullPointerValueTemplateArgument()
6317 << Arg->getType() << ParamType << Arg->getSourceRange(); in isNullPointerValueTemplateArgument()
6325 std::string Code = "static_cast<" + ParamType.getAsString() + ">("; in isNullPointerValueTemplateArgument()
6327 << ParamType << FixItHint::CreateInsertion(Arg->getBeginLoc(), Code) in isNullPointerValueTemplateArgument()
6343 Sema &S, NonTypeTemplateParmDecl *Param, QualType ParamType, Expr *ArgIn, in CheckTemplateArgumentIsCompatibleWithParameter() argument
6346 if (ParamType->isPointerType() && in CheckTemplateArgumentIsCompatibleWithParameter()
6347 !ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType() && in CheckTemplateArgumentIsCompatibleWithParameter()
[all …]
H A DSemaTemplateDeduction.cpp416 QualType ParamType = S.Context.getAdjustedParameterType(NTTP->getType()); in DeduceNonTypeTemplateArgument() local
417 if (auto *Expansion = dyn_cast<PackExpansionType>(ParamType)) in DeduceNonTypeTemplateArgument()
418 ParamType = Expansion->getPattern(); in DeduceNonTypeTemplateArgument()
425 if (ParamType->isReferenceType()) in DeduceNonTypeTemplateArgument()
426 ParamType = ParamType.getNonReferenceType(); in DeduceNonTypeTemplateArgument()
432 S, TemplateParams, ParamType, ValueType, Info, Deduced, in DeduceNonTypeTemplateArgument()
1127 static bool hasInconsistentOrSupersetQualifiersOf(QualType ParamType, in hasInconsistentOrSupersetQualifiersOf() argument
1129 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf()
3742 Expr *Arg, QualType ParamType, in ResolveOverloadForDeduction() argument
3760 if (!ParamType->isFunctionType() && in ResolveOverloadForDeduction()
[all …]
H A DSemaCodeComplete.cpp3584 QualType ParamType = (*P)->getType(); in createCodeCompletionStringForDecl() local
3589 if (ParamType->isBlockPointerType() && !DeclaringEntity) in createCodeCompletionStringForDecl()
3594 ParamType = ParamType.substObjCTypeArgs( in createCodeCompletionStringForDecl()
3597 ParamType); in createCodeCompletionStringForDecl()
3598 Arg += ParamType.getAsString(Policy) + ")"; in createCodeCompletionStringForDecl()
5689 QualType ParamType; in getParamType() local
5694 if (ParamType.isNull()) in getParamType()
5695 ParamType = Proto->getParamType(N); in getParamType()
5697 ParamType.getNonReferenceType(), in getParamType()
5704 return ParamType; in getParamType()
[all …]
H A DSemaDeclCXX.cpp4641 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitBaseInitializer() local
4646 Constructor->getLocation(), ParamType, in BuildImplicitBaseInitializer()
4654 ParamType.getQualifiers()); in BuildImplicitBaseInitializer()
4711 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitMemberInitializer() local
4720 Loc, ParamType, VK_LValue, nullptr); in BuildImplicitMemberInitializer()
4737 ParamType, Loc, in BuildImplicitMemberInitializer()
10330 QualType ParamType = Constructor->getParamDecl(0)->getType(); in CheckConstructor() local
10332 if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) { in CheckConstructor()
10370 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in CheckDestructor() local
10371 if (!declaresSameEntity(ParamType->getAsCXXRecordDecl(), RD)) { in CheckDestructor()
[all …]
H A DSemaStmt.cpp4695 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4697 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4733 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)) in ActOnCapturedRegionStart() local
4737 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4755 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4757 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DConsumed.cpp181 static bool isRValueRef(QualType ParamType) { in isRValueRef() argument
182 return ParamType->isRValueReferenceType(); in isRValueRef()
189 static bool isPointerOrRef(QualType ParamType) { in isPointerOrRef() argument
190 return ParamType->isPointerType() || ParamType->isReferenceType(); in isPointerOrRef()
624 QualType ParamType = Param->getType(); in handleCall() local
649 else if (isRValueRef(ParamType) || isConsumableType(ParamType)) in handleCall()
651 else if (isPointerOrRef(ParamType) && in handleCall()
652 (!ParamType->getPointeeType().isConstQualified() || in handleCall()
653 isSetOnReadPtrType(ParamType))) in handleCall()
858 QualType ParamType = Param->getType(); in VisitParmVarDecl() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp144 Type *ParamType = *PI; in createWrapper() local
146 if (ArgType == ParamType) { in createWrapper()
149 if (CastInst::isBitOrNoopPointerCastable(ArgType, ParamType, DL)) { in createWrapper()
151 CastInst::CreateBitOrPointerCast(AI, ParamType, "cast"); in createWrapper()
154 } else if (ArgType->isStructTy() || ParamType->isStructTy()) { in createWrapper()
162 << *ParamType << " Got: " << *ArgType << "\n"); in createWrapper()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DMismatchedIteratorChecker.cpp177 const auto *ParamType = in checkPreCall() local
179 if (!ParamType || in checkPreCall()
180 ParamType->getReplacedParameter()->getDecl() != TPDecl) in checkPreCall()
H A DDynamicTypePropagation.cpp867 QualType ParamType = OrigParamType.substObjCTypeArgs( in checkPreObjCMessage() local
870 const auto *ParamObjectPtrType = ParamType->getAs<ObjCObjectPointerType>(); in checkPreObjCMessage()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.h28 enum ParamType { enum
232 void appendParameterType(ParamType Type);
H A DPPCMachineFunctionInfo.cpp68 void PPCFunctionInfo::appendParameterType(ParamType Type) { in appendParameterType()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclCXX.cpp2389 QualType ParamType = getParamDecl(0)->getType(); in isCopyAssignmentOperator() local
2390 if (const auto *Ref = ParamType->getAs<LValueReferenceType>()) in isCopyAssignmentOperator()
2391 ParamType = Ref->getPointeeType(); in isCopyAssignmentOperator()
2396 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isCopyAssignmentOperator()
2409 QualType ParamType = getParamDecl(0)->getType(); in isMoveAssignmentOperator() local
2410 if (!isa<RValueReferenceType>(ParamType)) in isMoveAssignmentOperator()
2412 ParamType = ParamType->getPointeeType(); in isMoveAssignmentOperator()
2417 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isMoveAssignmentOperator()
2737 CanQualType ParamType = Context.getCanonicalType(Param->getType()); in isSpecializationCopyingObject() local
2742 if (ParamType.getUnqualifiedType() != ClassTy) in isSpecializationCopyingObject()
H A DODRHash.cpp903 for (auto ParamType : T->getParamTypes()) in VisitFunctionProtoType() local
904 AddQualType(ParamType); in VisitFunctionProtoType()
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DLibASTMatchers.rst109 ``AST_MATCHER_P(Type, Name, ParamType, Param)``
114 named *Name* that takes a parameter of type *ParamType* and returns the
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DCodeGenTarget.cpp902 MVT ParamType = MVT(IS.ParamVTs[ParamIdx]); in isParamAPointer() local
903 return ParamType == MVT::iPTR || ParamType == MVT::iPTRAny; in isParamAPointer()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp217 for (const auto &ParamType : FunctionSig.Params) in dump() local
218 Sig.ParamTypes.emplace_back(static_cast<uint32_t>(ParamType)); in dump()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp363 for (auto ParamType : Sig.ParamTypes) in writeSectionContent() local
364 writeUint8(OS, ParamType); in writeSectionContent()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCall.cpp2364 QualType ParamType = I->type; in ConstructAttributeList() local
2379 bool ArgNoUndef = DetermineNoUndef(ParamType, getTypes(), DL, AI); in ConstructAttributeList()
2406 Attrs.addByValAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2408 auto *Decl = ParamType->getAsRecordDecl(); in ConstructAttributeList()
2445 Attrs.addByRefAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2461 if (const auto *RefTy = ParamType->getAs<ReferenceType>()) { in ConstructAttributeList()
2471 getNaturalPointeeTypeAlignment(ParamType).getAsAlign(); in ConstructAttributeList()
2484 Attrs.addStructRetAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2492 auto PTy = ParamType->getPointeeType(); in ConstructAttributeList()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp868 Type *ParamType = T->getParamType(I); in getCustomFunctionType() local
870 if (isa<PointerType>(ParamType) && in getCustomFunctionType()
871 (FT = dyn_cast<FunctionType>(ParamType->getPointerElementType()))) { in getCustomFunctionType()
877 ArgTypes.push_back(ParamType); in getCustomFunctionType()
H A DInstrProfiling.cpp606 #define VALUE_PROF_FUNC_PARAM(ParamType, ParamName, ParamLLVMType) ParamLLVMType in getOrInsertValueProfilingCall() argument
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DWasmObjectFile.cpp1018 uint32_t ParamType = readUint8(Ctx); in parseTypeSection() local
1019 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection()

12