Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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.h4931 QualType ParamType = FProto->getParamType(ParamIndex); in AST_POLYMORPHIC_MATCHER_P2() local
4932 if (ParamMatcher.matches(ParamType, Finder, &ParamMatches)) { in AST_POLYMORPHIC_MATCHER_P2()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaTemplate.cpp6475 QualType ParamType, Expr *Arg, in isNullPointerValueTemplateArgument() argument
6485 if (!S.isCompleteType(Arg->getExprLoc(), ParamType)) in isNullPointerValueTemplateArgument()
6536 if (S.Context.hasSameUnqualifiedType(Arg->getType(), ParamType) || in isNullPointerValueTemplateArgument()
6537 S.IsQualificationConversion(Arg->getType(), ParamType, false, in isNullPointerValueTemplateArgument()
6544 << Arg->getType() << ParamType << Arg->getSourceRange(); in isNullPointerValueTemplateArgument()
6554 << EvalResult.Val.getAsString(S.Context, ParamType); in isNullPointerValueTemplateArgument()
6562 std::string Code = "static_cast<" + ParamType.getAsString() + ">("; in isNullPointerValueTemplateArgument()
6564 << ParamType << FixItHint::CreateInsertion(Arg->getBeginLoc(), Code) in isNullPointerValueTemplateArgument()
6580 Sema &S, NonTypeTemplateParmDecl *Param, QualType ParamType, Expr *ArgIn, in CheckTemplateArgumentIsCompatibleWithParameter() argument
6583 if (ParamType->isPointerType() && in CheckTemplateArgumentIsCompatibleWithParameter()
[all …]
H A DSemaTemplateDeduction.cpp410 QualType ParamType = S.Context.getAdjustedParameterType(NTTP->getType()); in DeduceNonTypeTemplateArgument() local
411 if (auto *Expansion = dyn_cast<PackExpansionType>(ParamType)) in DeduceNonTypeTemplateArgument()
412 ParamType = Expansion->getPattern(); in DeduceNonTypeTemplateArgument()
419 if (ParamType->isReferenceType()) in DeduceNonTypeTemplateArgument()
420 ParamType = ParamType.getNonReferenceType(); in DeduceNonTypeTemplateArgument()
426 S, TemplateParams, ParamType, ValueType, Info, Deduced, in DeduceNonTypeTemplateArgument()
1143 static bool hasInconsistentOrSupersetQualifiersOf(QualType ParamType, in hasInconsistentOrSupersetQualifiersOf() argument
1145 Qualifiers ParamQs = ParamType.getQualifiers(); in hasInconsistentOrSupersetQualifiersOf()
3731 Expr *Arg, QualType ParamType, in ResolveOverloadForDeduction() argument
3749 if (!ParamType->isFunctionType() && in ResolveOverloadForDeduction()
[all …]
H A DSemaCodeComplete.cpp3626 QualType ParamType = (*P)->getType(); in createCodeCompletionStringForDecl() local
3631 if (ParamType->isBlockPointerType() && !DeclaringEntity) in createCodeCompletionStringForDecl()
3636 ParamType = ParamType.substObjCTypeArgs( in createCodeCompletionStringForDecl()
3639 ParamType); in createCodeCompletionStringForDecl()
3640 Arg += ParamType.getAsString(Policy) + ")"; in createCodeCompletionStringForDecl()
6022 QualType ParamType; in getParamType() local
6027 if (ParamType.isNull()) { in getParamType()
6028 ParamType = CandidateParamType; in getParamType()
6032 ParamType.getNonReferenceType(), in getParamType()
6038 return ParamType; in getParamType()
[all …]
H A DSemaDeclCXX.cpp4762 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitBaseInitializer() local
4767 Constructor->getLocation(), ParamType, in BuildImplicitBaseInitializer()
4775 ParamType.getQualifiers()); in BuildImplicitBaseInitializer()
4832 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitMemberInitializer() local
4841 Loc, ParamType, VK_LValue, nullptr); in BuildImplicitMemberInitializer()
4858 ParamType, Loc, in BuildImplicitMemberInitializer()
10618 QualType ParamType = Constructor->getParamDecl(0)->getType(); in CheckConstructor() local
10620 if (Context.getCanonicalType(ParamType).getUnqualifiedType() == ClassTy) { in CheckConstructor()
10658 QualType ParamType = OperatorDelete->getParamDecl(0)->getType(); in CheckDestructor() local
10659 if (!declaresSameEntity(ParamType->getAsCXXRecordDecl(), RD)) { in CheckDestructor()
[all …]
H A DSemaStmt.cpp4710 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4712 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4748 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)) in ActOnCapturedRegionStart() local
4752 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
4770 QualType ParamType = Context.getPointerType(Context.getTagDeclType(RD)); in ActOnCapturedRegionStart() local
4772 ImplicitParamDecl::Create(Context, DC, Loc, ParamName, ParamType, in ActOnCapturedRegionStart()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.h26 enum ParamType { enum
136 SmallVector<ParamType, 32> ParamtersType;
242 void appendParameterType(ParamType Type);
H A DPPCMachineFunctionInfo.cpp76 void PPCFunctionInfo::appendParameterType(ParamType Type) { in appendParameterType()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DMismatchedIteratorChecker.cpp177 const auto *ParamType = in checkPreCall() local
179 if (!ParamType) in checkPreCall()
181 const TemplateTypeParmDecl *D = ParamType->getReplacedParameter(); in checkPreCall()
H A DDynamicTypePropagation.cpp865 QualType ParamType = OrigParamType.substObjCTypeArgs( in checkPreObjCMessage() local
868 const auto *ParamObjectPtrType = ParamType->getAs<ObjCObjectPointerType>(); in checkPreObjCMessage()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stack_store_test.cpp138 StackStorePackTest::ParamType(StackStore::Compression::Delta,
140 StackStorePackTest::ParamType(StackStore::Compression::LZW,
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDeclCXX.cpp2421 QualType ParamType = getParamDecl(0)->getType(); in isCopyAssignmentOperator() local
2422 if (const auto *Ref = ParamType->getAs<LValueReferenceType>()) in isCopyAssignmentOperator()
2423 ParamType = Ref->getPointeeType(); in isCopyAssignmentOperator()
2428 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isCopyAssignmentOperator()
2441 QualType ParamType = getParamDecl(0)->getType(); in isMoveAssignmentOperator() local
2442 if (!ParamType->isRValueReferenceType()) in isMoveAssignmentOperator()
2444 ParamType = ParamType->getPointeeType(); in isMoveAssignmentOperator()
2449 return Context.hasSameUnqualifiedType(ClassType, ParamType); in isMoveAssignmentOperator()
2768 CanQualType ParamType = Context.getCanonicalType(Param->getType()); in isSpecializationCopyingObject() local
2773 if (ParamType.getUnqualifiedType() != ClassTy) in isSpecializationCopyingObject()
H A DODRHash.cpp1058 for (auto ParamType : T->getParamTypes()) in VisitFunctionProtoType() local
1059 AddQualType(ParamType); in VisitFunctionProtoType()
/openbsd-src/gnu/llvm/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
/openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp372 QualType ParamType = Param->getType(); in pushCallInternal() local
373 if (ParamType->isReferenceType()) { in pushCallInternal()
378 } else if (Value *Val = createValue(ParamType)) { in pushCallInternal()
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenTarget.cpp933 MVT ParamType = MVT(IS.ParamVTs[ParamIdx]); in isParamAPointer() local
934 return ParamType == MVT::iPTR || ParamType == MVT::iPTRAny; in isParamAPointer()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp221 for (const auto &ParamType : FunctionSig.Params) in dump() local
222 Sig.ParamTypes.emplace_back(static_cast<uint32_t>(ParamType)); in dump()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp399 QualType ParamType = Parameter->getType(); in processArgument() local
411 if (isTransparentUnion(ParamType) && in processArgument()
420 return SVB.makeCompoundVal(ParamType, CompoundSVals); in processArgument()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCall.cpp2482 QualType ParamType = I->type; in ConstructAttributeList() local
2498 DetermineNoUndef(ParamType, getTypes(), DL, AI)) { in ConstructAttributeList()
2525 Attrs.addByValAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2527 auto *Decl = ParamType->getAsRecordDecl(); in ConstructAttributeList()
2562 Attrs.addByRefAttr(getTypes().ConvertTypeForMem(ParamType)); in ConstructAttributeList()
2577 if (const auto *RefTy = ParamType->getAs<ReferenceType>()) { in ConstructAttributeList()
2587 getNaturalPointeeTypeAlignment(ParamType).getAsAlign(); in ConstructAttributeList()
2597 ParamType->isPointerType()) { in ConstructAttributeList()
2598 QualType PTy = ParamType->getPointeeType(); in ConstructAttributeList()
2601 getNaturalPointeeTypeAlignment(ParamType).getAsAlign(); in ConstructAttributeList()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp376 for (auto ParamType : Sig.ParamTypes) in writeSectionContent() local
377 writeUint8(OS, ParamType); in writeSectionContent()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DWasmObjectFile.cpp1094 uint32_t ParamType = readUint8(Ctx); in parseTypeSection() local
1095 Sig.Params.push_back(wasm::ValType(ParamType)); in parseTypeSection()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp598 #define VALUE_PROF_FUNC_PARAM(ParamType, ParamName, ParamLLVMType) ParamLLVMType in getOrInsertValueProfilingCall() argument

12