Home
last modified time | relevance | path

Searched refs:FunctionProtoType (Results 1 – 25 of 67) sorted by relevance

123

/external/clang/lib/Sema/
DSemaExceptionSpec.cpp27 static const FunctionProtoType *GetUnderlyingFunction(QualType T) in GetUnderlyingFunction()
35 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction()
92 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec()
99 const FunctionProtoType *
100 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { in ResolveExceptionSpec()
107 const FunctionProtoType *SourceFPT = in ResolveExceptionSpec()
108 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
116 return SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec()
130 Old->getType()->getAs<FunctionProtoType>(), in CheckEquivalentExceptionSpec()
132 New->getType()->getAs<FunctionProtoType>(), in CheckEquivalentExceptionSpec()
[all …]
DSemaLambda.cpp239 FunctionProtoType::ExtProtoInfo EPI; in ActOnStartOfLambdaDefinition()
459 const FunctionProtoType *Proto in addFunctionPointerConversion()
460 = CallOperator->getType()->getAs<FunctionProtoType>(); in addFunctionPointerConversion()
464 FunctionProtoType::ExtProtoInfo ExtInfo = Proto->getExtProtoInfo(); in addFunctionPointerConversion()
473 FunctionProtoType::ExtProtoInfo ExtInfo; in addFunctionPointerConversion()
531 const FunctionProtoType *Proto in addBlockPointerConversion()
532 = CallOperator->getType()->getAs<FunctionProtoType>(); in addBlockPointerConversion()
535 FunctionProtoType::ExtProtoInfo ExtInfo = Proto->getExtProtoInfo(); in addBlockPointerConversion()
545 FunctionProtoType::ExtProtoInfo ExtInfo; in addBlockPointerConversion()
671 const FunctionProtoType *Proto in ActOnLambdaExpr()
[all …]
DSemaDeclCXX.cpp134 const FunctionProtoType *Proto in CalledDecl()
135 = Method->getType()->getAs<FunctionProtoType>(); in CalledDecl()
170 FunctionProtoType::NoexceptResult NR = in CalledDecl()
172 assert(NR != FunctionProtoType::NR_NoNoexcept && in CalledDecl()
174 assert(NR != FunctionProtoType::NR_Dependent && in CalledDecl()
179 if (NR == FunctionProtoType::NR_Throw) { in CalledDecl()
192 for (FunctionProtoType::exception_iterator E = Proto->exception_begin(), in CalledDecl()
585 OldType->getAs<FunctionProtoType>(), Old->getLocation(), in MergeVarDeclExceptionSpecs()
586 NewType->getAs<FunctionProtoType>(), New->getLocation())) { in MergeVarDeclExceptionSpecs()
663 const FunctionProtoType *FT = FD->getType()->getAs<FunctionProtoType>(); in CheckConstexprParameterTypes()
[all …]
DSemaTemplateInstantiateDecl.cpp1091 if (isa<FunctionProtoType>(Function->getType().IgnoreParens())) { in VisitFunctionDecl()
1099 const FunctionProtoType *Proto in VisitFunctionDecl()
1100 = Function->getType()->getAs<FunctionProtoType>(); in VisitFunctionDecl()
1102 for (FunctionProtoType::arg_type_iterator AI = Proto->arg_type_begin(), in VisitFunctionDecl()
1376 if (!isa<FunctionProtoType>(T.IgnoreParens())) { in VisitCXXMethodDecl()
2252 const FunctionProtoType *Proto, in InstantiateExceptionSpec()
2364 const FunctionProtoType *NewProto in InstantiateExceptionSpec()
2365 = New->getType()->getAs<FunctionProtoType>(); in InstantiateExceptionSpec()
2368 FunctionProtoType::ExtProtoInfo EPI = NewProto->getExtProtoInfo(); in InstantiateExceptionSpec()
2382 const FunctionProtoType *Proto = Decl->getType()->castAs<FunctionProtoType>(); in InstantiateExceptionSpec()
[all …]
DSemaOverload.cpp921 const FunctionProtoType* OldType = cast<FunctionProtoType>(OldQType); in IsOverload()
922 const FunctionProtoType* NewType = cast<FunctionProtoType>(NewQType); in IsOverload()
2151 const FunctionProtoType *FromFunctionType in isObjCPointerConversion()
2152 = FromPointeeType->getAs<FunctionProtoType>(); in isObjCPointerConversion()
2153 const FunctionProtoType *ToFunctionType in isObjCPointerConversion()
2154 = ToPointeeType->getAs<FunctionProtoType>(); in isObjCPointerConversion()
2299 const FunctionProtoType *FromFunctionType in IsBlockPointerConversion()
2300 = FromPointeeType->getAs<FunctionProtoType>(); in IsBlockPointerConversion()
2301 const FunctionProtoType *ToFunctionType in IsBlockPointerConversion()
2302 = ToPointeeType->getAs<FunctionProtoType>(); in IsBlockPointerConversion()
[all …]
/external/clang/lib/AST/
DLambdaMangleContext.cpp20 const FunctionProtoType *Proto in getManglingNumber()
21 = CallOperator->getType()->getAs<FunctionProtoType>(); in getManglingNumber()
27 FunctionProtoType::ExtProtoInfo()); in getManglingNumber()
29 return ++ManglingNumbers[Key->castAs<FunctionProtoType>()]; in getManglingNumber()
DMicrosoftMangle.cpp72 void mangleThrowSpecification(const FunctionProtoType *T);
191 const FunctionProtoType *FT = cast<FunctionProtoType>(FD->getType()); in mangleFunctionEncoding()
726 void MicrosoftCXXNameMangler::mangleType(const FunctionProtoType *T) { in mangleType()
743 const FunctionProtoType *Proto = cast<FunctionProtoType>(T); in mangleType()
773 for (FunctionProtoType::arg_type_iterator Arg = Proto->arg_type_begin(), in mangleType()
877 const FunctionProtoType *FT) { in mangleThrowSpecification()
985 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(PointeeType)) { in mangleType()
DType.cpp1494 FunctionProtoType::FunctionProtoType(QualType result, const QualType *args, in FunctionProtoType() function in FunctionProtoType
1566 FunctionProtoType::NoexceptResult
1567 FunctionProtoType::getNoexceptSpec(ASTContext &ctx) const { in getNoexceptSpec()
1590 bool FunctionProtoType::isTemplateVariadic() const { in isTemplateVariadic()
1598 void FunctionProtoType::Profile(llvm::FoldingSetNodeID &ID, QualType Result, in Profile()
1651 void FunctionProtoType::Profile(llvm::FoldingSetNodeID &ID, in Profile()
2066 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); in computeCachedProperties()
2068 for (FunctionProtoType::arg_type_iterator ai = FPT->arg_type_begin(), in computeCachedProperties()
DASTContext.cpp1471 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); in adjustFunctionType()
1472 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in adjustFunctionType()
2122 FunctionProtoType::ExtInfo newInfo = Info.withCallingConv(CallConv); in getFunctionNoProtoType()
2135 const FunctionProtoType::ExtProtoInfo &EPI) const { in getFunctionType()
2139 FunctionProtoType::Profile(ID, ResultTy, ArgArray, NumArgs, EPI, *this); in getFunctionType()
2142 if (FunctionProtoType *FTP = in getFunctionType()
2167 FunctionProtoType::ExtProtoInfo CanonicalEPI = EPI; in getFunctionType()
2179 FunctionProtoType *NewIP = in getFunctionType()
2191 size_t Size = sizeof(FunctionProtoType) + in getFunctionType()
2203 FunctionProtoType *FTP = (FunctionProtoType*) Allocate(Size, TypeAlignment); in getFunctionType()
[all …]
DDumpXML.cpp975 void visitFunctionProtoTypeAttrs(FunctionProtoType *T) { in visitFunctionProtoTypeAttrs()
980 void visitFunctionProtoTypeChildren(FunctionProtoType *T) { in visitFunctionProtoTypeChildren()
984 for (FunctionProtoType::arg_type_iterator in visitFunctionProtoTypeChildren()
993 for (FunctionProtoType::exception_iterator in visitFunctionProtoTypeChildren()
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp305 const FunctionProtoType *FPT in checkCall_gets()
306 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens()); in checkCall_gets()
343 const FunctionProtoType *FPT in checkCall_getpw()
344 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens()); in checkCall_getpw()
389 const FunctionProtoType *FPT in checkCall_mktemp()
390 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens()); in checkCall_mktemp()
563 const FunctionProtoType *FPT in checkCall_strCommon()
564 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens()); in checkCall_strCommon()
598 const FunctionProtoType *FTP in checkCall_rand()
599 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens()); in checkCall_rand()
[all …]
/external/clang/include/clang/AST/
DLambdaMangleContext.h22 class FunctionProtoType; variable
27 llvm::DenseMap<const FunctionProtoType *, unsigned> ManglingNumbers;
DCanonicalType.h600 struct CanProxyAdaptor<FunctionProtoType>
601 : public CanProxyBase<FunctionProtoType> {
612 typedef CanTypeIterator<FunctionProtoType::arg_type_iterator>
/external/clang/lib/CodeGen/
DCGCall.h118 static RequiredArgs forPrototypePlus(const FunctionProtoType *prototype, in forPrototypePlus()
124 static RequiredArgs forPrototype(const FunctionProtoType *prototype) { in forPrototype()
128 static RequiredArgs forPrototype(CanQual<FunctionProtoType> prototype) { in forPrototype()
132 static RequiredArgs forPrototypePlus(CanQual<FunctionProtoType> prototype, in forPrototypePlus()
DCodeGenTypes.h41 class FunctionProtoType; variable
199 const CGFunctionInfo &arrangeFunctionType(CanQual<FunctionProtoType> Ty);
202 const FunctionProtoType *FTP);
DCGExprCXX.cpp47 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitCXXMemberCall()
295 const FunctionProtoType *FPT = in EmitCXXMemberPointerCallExpr()
296 MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitCXXMemberPointerCallExpr()
989 const FunctionProtoType *FPT in Emit()
990 = OperatorDelete->getType()->getAs<FunctionProtoType>(); in Emit()
997 FunctionProtoType::arg_type_iterator AI = FPT->arg_type_begin(); in Emit()
1046 const FunctionProtoType *FPT in Emit()
1047 = OperatorDelete->getType()->getAs<FunctionProtoType>(); in Emit()
1054 FunctionProtoType::arg_type_iterator AI = FPT->arg_type_begin(); in Emit()
1123 const FunctionProtoType *allocatorType = in EmitCXXNewExpr()
[all …]
DCodeGenTypes.cpp227 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible()
476 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertType()
478 CanQual<FunctionProtoType>::CreateUnsafe(QualType(FPT, 0))); in ConvertType()
DCGCall.cpp57 static CanQual<FunctionProtoType> GetFormalType(const CXXMethodDecl *MD) { in GetFormalType()
59 .getAs<FunctionProtoType>(); in GetFormalType()
87 CanQual<FunctionProtoType> FTP) { in arrangeFunctionType()
100 CodeGenTypes::arrangeFunctionType(CanQual<FunctionProtoType> FTP) { in arrangeFunctionType()
131 const FunctionProtoType *FTP) { in arrangeCXXMethodType()
138 FTP->getCanonicalTypeUnqualified().getAs<FunctionProtoType>()); in arrangeCXXMethodType()
150 CanQual<FunctionProtoType> prototype = GetFormalType(MD); in arrangeCXXMethodDeclaration()
171 CanQual<FunctionProtoType> FTP = GetFormalType(D); in arrangeCXXConstructorDeclaration()
194 CanQual<FunctionProtoType> FTP = GetFormalType(D); in arrangeCXXDestructor()
223 assert(isa<FunctionProtoType>(FTy)); in arrangeFunctionDeclaration()
[all …]
DCGCXXABI.cpp48 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer()
49 MPT->getPointeeType()->getAs<FunctionProtoType>(); in EmitLoadOfMemberFunctionPointer()
DCGVTables.cpp241 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); in GenerateVarArgsThunk()
307 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); in GenerateThunk()
DCGException.cpp479 const FunctionProtoType *Proto = FD->getType()->getAs<FunctionProtoType>(); in EmitStartEHSpec()
485 if (Proto->getNoexceptSpec(getContext()) == FunctionProtoType::NR_Nothrow) { in EmitStartEHSpec()
547 const FunctionProtoType *Proto = FD->getType()->getAs<FunctionProtoType>(); in EmitEndEHSpec()
553 if (Proto->getNoexceptSpec(getContext()) == FunctionProtoType::NR_Nothrow) { in EmitEndEHSpec()
/external/clang/tools/libclang/
DCXType.cpp426 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) in clang_isFunctionTypeVariadic()
463 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) { in clang_getNumArgTypes()
479 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) { in clang_getArgType()
/external/clang/lib/Rewrite/
DRewriteObjC.cpp486 FunctionProtoType::ExtProtoInfo fpi; in getSimpleFunctionType()
542 if (const FunctionProtoType *fproto in RewriteBlocksInFunctionProtoType()
543 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { in RewriteBlocksInFunctionProtoType()
544 for (FunctionProtoType::arg_type_iterator I = fproto->arg_type_begin(), in RewriteBlocksInFunctionProtoType()
813 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ in RewritePropertyImplDecl()
1153 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { in RewriteObjCMethodDecl()
2144 const FunctionProtoType *proto = 0; in RewriteObjCQualifiedInterfaceTypes()
2155 proto = dyn_cast<FunctionProtoType>(funcType); in RewriteObjCQualifiedInterfaceTypes()
2327 const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(funcType); in RewriteBlockLiteralFunctionDecl()
3345 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT); in SynthesizeBlockFunc()
[all …]
DRewriteModernObjC.cpp524 FunctionProtoType::ExtProtoInfo fpi; in getSimpleFunctionType()
548 if (const FunctionProtoType *fproto in RewriteBlocksInFunctionProtoType()
549 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { in RewriteBlocksInFunctionProtoType()
550 for (FunctionProtoType::arg_type_iterator I = fproto->arg_type_begin(), in RewriteBlocksInFunctionProtoType()
831 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ in RewritePropertyImplDecl()
1200 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { in RewriteObjCMethodDecl()
2068 const FunctionProtoType *proto = 0; in RewriteObjCQualifiedInterfaceTypes()
2079 proto = dyn_cast<FunctionProtoType>(funcType); in RewriteObjCQualifiedInterfaceTypes()
2250 const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(funcType); in RewriteBlockLiteralFunctionDecl()
3740 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT); in SynthesizeBlockFunc()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp199 const FunctionProtoType *FnType = NULL; in VisitCXXNewExpr()
202 FnType = CD->getType()->getAs<FunctionProtoType>(); in VisitCXXNewExpr()

123