Home
last modified time | relevance | path

Searched refs:isFunctionType (Results 1 – 25 of 55) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprClassification.cpp45 if (TR->isFunctionType() || TR == Ctx.OverloadTy) in ClassifyImpl()
536 return RV->getPointeeType()->isFunctionType() ? Cl::CL_LValue : Cl::CL_XValue; in ClassifyUnnamed()
619 return (E->getType()->isFunctionType() || in ClassifyBinaryOp()
627 return (E->getType()->isFunctionType() || in ClassifyBinaryOp()
687 if (Ctx.getLangOpts().CPlusPlus && E->getType()->isFunctionType()) in IsModifiable()
H A DASTContext.cpp1855 if (T->isFunctionType()) in getDeclAlign()
3619 if (T->isFunctionType()) { in getPointerAuthTypeDiscriminator()
3997 assert((T->isArrayType() || T->isFunctionType()) && "T does not decay"); in getDecayedType()
4013 if (T->isFunctionType()) in getDecayedType()
4054 assert(T->isFunctionType() && "block of function types only"); in getBlockPointerType()
7949 if (T->isArrayType() || T->isFunctionType()) in getAdjustedParameterType()
7968 if (T->isArrayType() || T->isFunctionType()) in getExceptionObjectType()
8743 } else if (PType->isFunctionType()) in getObjCEncodingForBlock()
8786 } else if (PType->isFunctionType()) in getObjCEncodingForFunctionDecl()
8857 } else if (PType->isFunctionType()) in getObjCEncodingForMethodDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTypeTraits.cpp762 return T->isFunctionType(); in EvaluateUnaryTypeTrait()
947 if (T->isIncompleteType() || T->isFunctionType()) in EvaluateUnaryTypeTrait()
1237 if (RhsT->isFunctionType() || RhsT->isArrayType()) in CheckConvertibilityForTypeTraits()
1246 if (LhsT->isObjectType() || LhsT->isFunctionType()) in CheckConvertibilityForTypeTraits()
1356 if (T->isIncompleteType() || T->isFunctionType()) in EvaluateBooleanTypeTrait()
1378 ArgTy->isFunctionType()) in EvaluateBooleanTypeTrait()
1417 if (T.getNonReferenceType()->isFunctionType()) in EvaluateBooleanTypeTrait()
1734 if (Ty->isObjectType() || Ty->isFunctionType()) in EvaluateBinaryTypeTrait()
2307 if (T->isFunctionType()) in DiagnoseNonConstructibleReason()
2324 if (ArgTy->isObjectType() || ArgTy->isFunctionType()) in DiagnoseNonConstructibleReason()
[all …]
H A DSemaType.cpp774 if (!declarator.getNumTypeObjects() && declSpecType->isFunctionType()) in maybeSynthesizeBlockSignature()
1505 if (Result->isFunctionType()) { in ConvertDeclSpecToType()
1817 if (T->isFunctionType() && getLangOpts().OpenCL && in BuildPointerType()
1905 if (T->isFunctionType() && getLangOpts().OpenCL && in BuildReferenceType()
2114 if (T->isFunctionType()) { in BuildArrayType()
2534 T->isFunctionType()) { in CheckFunctionReturnType()
2536 << T->isFunctionType() << T; in CheckFunctionReturnType()
2735 if (T->isFunctionType() && getLangOpts().OpenCL && in BuildMemberPointerType()
2752 if (T->isFunctionType()) in BuildMemberPointerType()
2761 if (!T->isFunctionType()) { in BuildBlockPointerType()
[all …]
H A DSemaBoundsSafety.cpp140 } else if (PointeeTy->isFunctionType()) { in CheckCountedByAttrOnField()
H A DSemaStmtAsm.cpp794 if (T->isFunctionType() || T->isDependentType()) in FillInlineAsmIdentifierInfo()
851 if (T->isFunctionType()) { in LookupInlineAsmIdentifier()
H A DSemaExpr.cpp519 if (Ty->isFunctionType()) { in DefaultFunctionArrayConversion()
762 if (Ty->isFunctionType()) { in CallExprUnaryConversions()
4190 if (!T->isFunctionType() && !T->isFunctionPointerType() && in checkPtrAuthTypeDiscriminatorOperandType()
4208 if (T->isFunctionType() && in CheckExtensionTraitOperandType()
4333 if (ExprTy->isFunctionType()) { in CheckUnaryExprOrTypeTraitOperand()
4624 if (ExprType->isFunctionType()) { in CheckUnaryExprOrTypeTraitOperand()
5344 if (ResultType->isFunctionType()) { in CreateBuiltinArraySubscriptExpr()
6555 T->isFunctionType() || T->isFunctionReferenceType() || in MayBeFunctionType()
9053 assert(rhptee->isFunctionType()); in checkPointerTypesForAssignment()
9067 assert(lhptee->isFunctionType()); in checkPointerTypesForAssignment()
[all …]
H A DDeclSpec.cpp390 return E->getType()->isFunctionType(); in isDeclarationOfFunction()
408 return QT->isFunctionType(); in isDeclarationOfFunction()
H A DSemaTemplateDeduction.cpp1602 if ((TDF & TDF_TopLevelParameterTypeList) && !P->isFunctionType()) { in DeduceTemplateArgumentsByTypeMatch()
1657 if (A->isFunctionType() && P.hasQualifiers()) in DeduceTemplateArgumentsByTypeMatch()
2097 if (PPT->isFunctionType()) in DeduceTemplateArgumentsByTypeMatch()
2101 if (APT->isFunctionType()) in DeduceTemplateArgumentsByTypeMatch()
3737 if (A->isFunctionType() && S.IsFunctionConversion(A, DeducedA)) in CheckOriginalCallArgDeduction()
4142 if (!ParamType->isFunctionType() && in ResolveOverloadForDeduction()
4196 ArgType->isFunctionType()) in ResolveOverloadForDeduction()
4910 else if (P->isFunctionType()) in DeduceTemplateArguments()
H A DSemaExprMember.cpp1207 if (IsArrow && !Base->getType()->isFunctionType()) in PerformMemberExprBaseConversion()
1250 else if (BaseType->isFunctionType()) in LookupMemberExpr()
H A DSemaTemplate.cpp1421 if (T->isArrayType() || T->isFunctionType()) in CheckNonTypeTemplateParameterType()
5538 if (T->isFunctionType()) in CheckTemplateArgument()
6473 !ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType() && in CheckTemplateArgumentIsCompatibleWithParameter()
6480 if (!ParamRef->getPointeeType()->isFunctionType()) { in CheckTemplateArgumentIsCompatibleWithParameter()
7436 ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType()) || in CheckTemplateArgument()
7442 ParamType->castAs<ReferenceType>()->getPointeeType()->isFunctionType()) || in CheckTemplateArgument()
7450 ->isFunctionType())) { in CheckTemplateArgument()
7703 else if (ParamType->isFunctionType()) in BuildExpressionFromDeclTemplateArgument()
10394 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
10420 if (!R->isFunctionType()) { in ActOnExplicitInstantiation()
H A DSemaExprCXX.cpp1618 if (Ty->isFunctionType()) in BuildCXXTypeConstructExpr()
2634 if (AllocType->isFunctionType()) in CheckAllocatedType()
4042 } else if (Pointee->isFunctionType() || Pointee->isVoidType() || in ActOnCXXDelete()
4386 if (T->isFunctionType()) in CheckConditionVariable()
5449 if (Result->isFunctionType()) { in CheckPointerToMemberOperands()
7023 ObjectType->isFunctionType()) { in CheckArrow()
7503 if (!getLangOpts().CPlusPlus && E->getType()->isFunctionType()) in IgnoredValueConversions()
H A DSemaX86.cpp1046 TD->getUnderlyingType()->isFunctionType())) in handleForceAlignArgPointerAttr()
H A DSemaOverload.cpp2376 } else if (FromType->isFunctionType() && argIsLValue) { in IsStandardConversion()
2982 if (getLangOpts().MSVCCompat && FromPointeeType->isFunctionType() && in IsPointerConversion()
3542 FromPointeeType->isFunctionType() && ToPointeeType->isVoidType()) { in CheckPointerConversion()
5086 else if (UnqualT2->isFunctionType() && in CompareReferenceRelationship()
5173 if (RefType && !RefType->getPointeeType()->isFunctionType()) in FindConversionForRefInit()
5195 !RefType->getPointeeType()->isFunctionType())) in FindConversionForRefInit()
5319 ICS.Standard.BindsToFunctionLvalue = T2->isFunctionType(); in TryReferenceInit()
5390 (InitCategory.isLValue() && T2->isFunctionType()))) { in TryReferenceInit()
5428 if (T1->isFunctionType()) in TryReferenceInit()
9475 if (!PointeeTy->isObjectType() && !PointeeTy->isFunctionType()) in addUnaryStarPointerOverloads()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObject.h326 T->isFunctionType() || T->isAtomicType() || in isPrimitiveType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp85 if (T->isFunctionType()) in getFunctionPointerAuthInfo()
163 if (PointeeType->isFunctionType()) in getPointerAuthInfoForPointeeType()
473 assert(FunctionType->isFunctionType() || in getFunctionPointer()
H A DCodeGenTypes.cpp897 return T->isFunctionType() && !T.hasAddressSpace() in getTargetAddressSpace()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp272 Call->getType()->isFunctionType()) { in create_call_once_funcptr_call()
277 && Call->getType()->getPointeeType()->isFunctionType()){ in create_call_once_funcptr_call()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp327 if (expr_type->isFunctionType()) in SynthesizeBodyResult()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h2450 return !isFunctionType();
2478 return !isReferenceType() && !isFunctionType() && !isVoidType();
2563 bool isFunctionType() const;
8314 getTypePtr()->isFunctionType());
8337 isFunctionType() ||
8353 inline bool Type::isFunctionType() const {
8398 return !T->getPointeeType()->isFunctionType();
8426 return T->getPointeeType()->isFunctionType();
8433 return T->getPointeeType()->isFunctionType();
8859 return !isArrayType() && !isFunctionType() && !isAnyPointerType() &&
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp829 assert(Loc::isLocType(OriginalTy) || OriginalTy->isFunctionType() || in VisitMemRegionVal()
919 assert(Loc::isLocType(OriginalTy) || OriginalTy->isFunctionType() || in VisitLocAsInteger()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h433 if (T->isArrayType() || T->isFunctionType()) in isPerfect()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExpr.cpp525 assert(!lv.getType()->isFunctionType()); in emitLoadOfLValue()
1286 assert(functionType->isFunctionType()); in emitCallee()
H A DCIRGenExprScalar.cpp474 } else if (type->isFunctionType()) { in emitScalarPrePostIncDec()
1395 if (elementType->isVoidType() || elementType->isFunctionType()) { in emitPointerArithmetic()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp241 static bool isFunctionType(std::string_view S) { in isFunctionType() function
1865 else if (isFunctionType(MangledName)) { in demangleType()

123