/external/clang/lib/AST/ |
D | ExprClassification.cpp | 45 if (TR->isFunctionType() || TR == Ctx.OverloadTy) in ClassifyImpl() 454 return RV->getPointeeType()->isFunctionType() ? Cl::CL_LValue : Cl::CL_XValue; in ClassifyUnnamed() 532 return (E->getType()->isFunctionType() || in ClassifyBinaryOp() 540 return (E->getType()->isFunctionType() || in ClassifyBinaryOp() 601 if (Ctx.getLangOpts().CPlusPlus && E->getType()->isFunctionType()) in IsModifiable()
|
D | ASTContext.cpp | 1397 if (!BaseT->isIncompleteType() && !T->isFunctionType()) { in getDeclAlign() 2384 assert((T->isArrayType() || T->isFunctionType()) && "T does not decay"); in getDecayedType() 2400 if (T->isFunctionType()) in getDecayedType() 2425 assert(T->isFunctionType() && "block of function types only"); in getBlockPointerType() 4498 if (T->isArrayType() || T->isFunctionType()) in getAdjustedParameterType() 4517 if (T->isArrayType() || T->isFunctionType()) in getExceptionObjectType() 5107 } else if (PType->isFunctionType()) in getObjCEncodingForBlock() 5149 } else if (PType->isFunctionType()) in getObjCEncodingForFunctionDecl() 5220 } else if (PType->isFunctionType()) in getObjCEncodingForMethodDecl() 7820 if (RHSCan->isFunctionType()) { in mergeObjCGCQualifiers() [all …]
|
D | TypePrinter.cpp | 1253 while (!t->isFunctionType()) in printAttributedAfter() 1306 while (!t->isFunctionType()) in printAttributedAfter()
|
D | ExprConstant.cpp | 1966 if (Type->isVoidType() || Type->isFunctionType()) { in HandleSizeof() 4623 assert(E->isGLValue() || E->getType()->isFunctionType() || in EvaluateLValue() 6227 else if (ArgTy->isFunctionType()) in EvaluateBuiltinClassifyType() 6521 if (PointeeType->isIncompleteType() || PointeeType->isFunctionType()) in tryEvaluateBuiltinObjectSize() 8700 if (E->isGLValue() || T->isFunctionType()) { in Evaluate()
|
D | Expr.cpp | 1549 assert(getSubExpr()->getType()->isFunctionType()); in CastConsistency() 2440 assert(type->isFunctionType()); in findBoundMemberType()
|
D | MicrosoftMangle.cpp | 1397 (PointeeType.isNull() || !PointeeType->isFunctionType())) in manglePointerExtQualifiers()
|
/external/clang/lib/Sema/ |
D | SemaType.cpp | 674 if (!declarator.getNumTypeObjects() && declSpecType->isFunctionType()) in maybeSynthesizeBlockSignature() 1579 if (TypeQuals && Result->isFunctionType()) { in ConvertDeclSpecToType() 2011 if (T->isFunctionType()) { in BuildArrayType() 2201 if (T->isArrayType() || T->isFunctionType()) { in CheckFunctionReturnType() 2203 << T->isFunctionType() << T; in CheckFunctionReturnType() 2297 if (T->isFunctionType()) in BuildMemberPointerType() 2317 if (!T->isFunctionType()) { in BuildBlockPointerType() 3760 if ((T->isArrayType() || T->isFunctionType()) && in GetFullTypeForDeclarator() 3768 S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T; in GetFullTypeForDeclarator() 4113 if (LangOpts.CPlusPlus && T->isFunctionType()) { in GetFullTypeForDeclarator() [all …]
|
D | SemaExprCXX.cpp | 1047 if (!ListInitialization && Ty->isFunctionType()) in BuildCXXTypeConstructExpr() 1669 if (AllocType->isFunctionType()) in CheckAllocatedType() 2716 } else if (Pointee->isFunctionType() || Pointee->isVoidType()) { in ActOnCXXDelete() 2832 if (T->isFunctionType()) in CheckConditionVariable() 3699 return T->isFunctionType(); in EvaluateUnaryTypeTrait() 3870 if (T->isIncompleteType() || T->isFunctionType()) in EvaluateUnaryTypeTrait() 4111 if (T->isIncompleteType() || T->isFunctionType()) in evaluateTypeTrait() 4124 if (ArgTy->isObjectType() || ArgTy->isFunctionType()) in evaluateTypeTrait() 4288 if (RhsT->isFunctionType() || RhsT->isArrayType()) in EvaluateBinaryTypeTrait() 4300 if (LhsT->isObjectType() || LhsT->isFunctionType()) in EvaluateBinaryTypeTrait() [all …]
|
D | SemaExpr.cpp | 508 if (Ty->isFunctionType()) { in DefaultFunctionArrayConversion() 732 if (Ty->isFunctionType()) { in CallExprUnaryConversions() 3482 if (T->isFunctionType() && in CheckExtensionTraitOperandType() 3577 if (ExprTy->isFunctionType()) { in CheckUnaryExprOrTypeTraitOperand() 3670 if (ExprType->isFunctionType()) { in CheckUnaryExprOrTypeTraitOperand() 4069 if (ResultTy->isFunctionType()) { in ActOnOMPArraySectionExpr() 4238 if (ResultType->isFunctionType()) { in CreateBuiltinArraySubscriptExpr() 6755 assert(rhptee->isFunctionType()); in checkPointerTypesForAssignment() 6764 assert(lhptee->isFunctionType()); in checkPointerTypesForAssignment() 7574 NonNullType->isMemberPointerType() || NonNullType->isFunctionType()) in checkArithmeticNull() [all …]
|
D | SemaTemplateDeduction.cpp | 1031 if ((TDF & TDF_TopLevelParameterTypeList) && !Param->isFunctionType()) { in DeduceTemplateArgumentsByTypeMatch() 1521 if (ParamPointeeType->isFunctionType()) in DeduceTemplateArgumentsByTypeMatch() 1525 if (ArgPointeeType->isFunctionType()) in DeduceTemplateArgumentsByTypeMatch() 3024 if (!ParamType->isFunctionType() && in ResolveOverloadForDeduction() 3069 ArgType->isFunctionType()) in ResolveOverloadForDeduction() 3160 else if (ArgType->isFunctionType()) in AdjustFunctionParmAndArgTypesForDeduction() 3810 else if (P->isFunctionType()) in DeduceTemplateArguments()
|
D | SemaTemplate.cpp | 656 else if (T->isArrayType() || T->isFunctionType()) in CheckNonTypeTemplateParameterType() 3588 if (T->isFunctionType()) in CheckTemplateArgument() 4374 !ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType() && in CheckTemplateArgumentIsCompatibleWithParameter() 4381 if (!ParamRef->getPointeeType()->isFunctionType()) { in CheckTemplateArgumentIsCompatibleWithParameter() 5185 ParamType->getAs<PointerType>()->getPointeeType()->isFunctionType()) || in CheckTemplateArgument() 5191 ParamType->getAs<ReferenceType>()->getPointeeType()->isFunctionType()) || in CheckTemplateArgument() 5199 ->isFunctionType())) { in CheckTemplateArgument() 5373 else if (ParamType->isFunctionType()) in BuildExpressionFromDeclTemplateArgument() 5450 if (T->isFunctionType() || T->isArrayType()) { in BuildExpressionFromDeclTemplateArgument() 7664 if (D.getDeclSpec().isConstexprSpecified() && R->isFunctionType()) in ActOnExplicitInstantiation() [all …]
|
D | DeclSpec.cpp | 314 return E->getType()->isFunctionType(); in isDeclarationOfFunction() 330 return QT->isFunctionType(); in isDeclarationOfFunction()
|
D | SemaOverload.cpp | 1519 !FromType->isFunctionType() && !FromType->isArrayType() && in IsStandardConversion() 1557 } else if (FromType->isFunctionType() && argIsLValue) { in IsStandardConversion() 2122 if (getLangOpts().MSVCCompat && FromPointeeType->isFunctionType() && in IsPointerConversion() 2695 if (!IsCStyleOrFunctionalCast && FromPointeeType->isFunctionType() && in CheckPointerConversion() 4142 if (RefType && !RefType->getPointeeType()->isFunctionType()) in FindConversionForRefInit() 4164 !RefType->getPointeeType()->isFunctionType())) in FindConversionForRefInit() 4295 ICS.Standard.BindsToFunctionLvalue = T2->isFunctionType(); in TryReferenceInit() 4339 (InitCategory.isLValue() && T2->isFunctionType()))) { in TryReferenceInit() 4360 ICS.Standard.BindsToFunctionLvalue = T2->isFunctionType(); in TryReferenceInit() 4396 if (T1->isFunctionType()) in TryReferenceInit() [all …]
|
D | SemaStmtAsm.cpp | 599 if (T->isFunctionType()) { in LookupInlineAsmIdentifier()
|
D | SemaTemplateInstantiateDecl.cpp | 509 if (DI->getType()->isFunctionType()) { in VisitVarDecl() 565 } else if (DI->getType()->isFunctionType()) { in VisitFieldDecl() 651 } else if (DI->getType()->isFunctionType()) { in VisitMSPropertyDecl() 2690 if (DI->getType()->isFunctionType()) { in VisitVarTemplateSpecializationDecl() 3000 if (DI->getType()->isFunctionType()) { in InstantiateVarTemplatePartialSpecialization()
|
D | SemaExprMember.cpp | 1204 if (IsArrow && !Base->getType()->isFunctionType()) in PerformMemberExprBaseConversion() 1261 } else if (BaseType->isFunctionType()) { in LookupMemberExpr()
|
D | SemaExceptionSpec.cpp | 80 else if (T->isFunctionType()) in CheckSpecifiedExceptionType()
|
D | SemaInit.cpp | 1006 } else if (DeclType->isVoidType() || DeclType->isFunctionType()) { in CheckListElementTypes() 3954 VK = RRef->getPointeeType()->isFunctionType() ? VK_LValue : VK_XValue; in TryRefInitWithConversionFunction() 4105 bool T1Function = T1->isFunctionType(); in TryReferenceInitializationCore() 5098 else if (Initializer->getType()->isFunctionType() && in InitializeFrom()
|
D | SemaDecl.cpp | 4863 if (!R->isFunctionType() && DiagnoseClassNameShadow(DC, NameInfo)) in HandleDeclarator() 4893 R->isFunctionType())) { in HandleDeclarator() 4988 } else if (R->isFunctionType()) { in HandleDeclarator() 7385 assert(R.getTypePtr()->isFunctionType()); in ActOnFunctionDeclarator() 8606 assert(T->isFunctionType() && "function decl is not of function type"); in CheckMain() 8719 assert(T->isFunctionType() && "function decl is not of function type"); in CheckMSVCRTEntryPoint() 13465 if (FDTy->isFunctionType()) { in ActOnFields()
|
/external/clang/include/clang/AST/ |
D | Type.h | 1552 return !isFunctionType(); 1560 return !isReferenceType() && !isFunctionType() && !isVoidType(); 1628 bool isFunctionType() const; 5228 getTypePtr()->isFunctionType()); 5250 isFunctionType() || 5266 inline bool Type::isFunctionType() const { 5289 return T->getPointeeType()->isFunctionType(); 5588 return isFunctionType() || isArrayType();
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 543 assert(Loc::isLocType(originalTy) || originalTy->isFunctionType() || in evalCast()
|
/external/clang/tools/libclang/ |
D | CXType.cpp | 754 if (QT->isVoidType() || QT->isFunctionType()) in clang_Type_getSizeOf()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 1744 } else if (type->isFunctionType()) { in EmitScalarPrePostIncDec() 2500 if (elementType->isVoidType() || elementType->isFunctionType()) { in emitPointerArithmetic() 2687 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub()
|
D | CGExpr.cpp | 466 if (sanitizePerformTypeCheck() && !E->getType()->isFunctionType()) { in EmitReferenceBindingToExpr() 1435 assert(!LV.getType()->isFunctionType()); in EmitLoadOfLValue()
|
/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 1576 (BaseType->isFunctionType() || in ParsePostfixExpressionSuffix()
|