reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3688 class FunctionNoProtoType : public FunctionType, public llvm::FoldingSetNode { 3725 class FunctionProtoType final
45 ABSTRACT_TYPE(Function, Type)
tools/clang/include/clang/AST/DeclBase.h 49 class FunctionType;
57 static inline bool doit(const From &Val) { 58 return To::classof(&Val); 104 static inline bool doit(const From *Val) { 106 return isa_impl<To, From>::doit(*Val); 106 return isa_impl<To, From>::doit(*Val); 122 return isa_impl_wrap<To, SimpleFrom, 132 return isa_impl_cl<To,FromTy>::doit(Val); 142 return isa_impl_wrap<X, const Y, 172 using ret_type = To *; // Pointer arg case, return Ty* 176 using ret_type = const To *; // Constant pointer arg case, return const Ty* 198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type; 204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type; 210 To, From, typename simplify_type<From>::SimpleType>::ret_type; 218 static typename cast_retty<To, From>::ret_type doit(From &Val) { 219 return cast_convert_val<To, SimpleFrom, 227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) { 228 typename cast_retty<To, FromTy>::ret_type Res2 248 typename cast_retty<X, const Y>::ret_type>::type 256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) { 258 return cast_convert_val<X, Y, 263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) { 265 return cast_convert_val<X, Y*, 305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type 309 return cast<X>(Val); 331 typename cast_retty<X, const Y>::ret_type>::type 337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) { 338 return isa<X>(Val) ? cast<X>(Val) : nullptr; 338 return isa<X>(Val) ? cast<X>(Val) : nullptr; 342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) { 343 return isa<X>(Val) ? cast<X>(Val) : nullptr; 343 return isa<X>(Val) ? cast<X>(Val) : nullptr; 366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type 368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; 368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;tools/clang/include/clang/AST/ASTContext.h
1193 const FunctionType *adjustFunctionType(const FunctionType *Fn, 1193 const FunctionType *adjustFunctionType(const FunctionType *Fn, 1194 FunctionType::ExtInfo EInfo); 1380 const FunctionType::ExtInfo &Info) const;tools/clang/include/clang/AST/ASTNodeTraverser.h
303 void VisitFunctionType(const FunctionType *T) { Visit(T->getReturnType()); }
tools/clang/include/clang/AST/ASTTypeTraits.h65 return ASTNodeKind(KindToKindId<T>::Id); 65 return ASTNodeKind(KindToKindId<T>::Id); 65 return ASTNodeKind(KindToKindId<T>::Id);tools/clang/include/clang/AST/CanonicalType.h
76 CanQual(const CanQual<U> &Other, 77 typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0); 77 typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0); 83 const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); } 83 const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); } 87 const T *getTypePtrOrNull() const { 88 return cast_or_null<T>(Stored.getTypePtrOrNull()); 120 template<typename U> CanProxy<U> getAs() const; 126 CanProxy<T> operator->() const; 157 CanQual<T> getUnqualifiedType() const; 167 bool isMoreQualifiedThan(CanQual<T> Other) const { 173 bool isAtLeastAsQualifiedAs(CanQual<T> Other) const { 185 static CanQual<T> getFromOpaquePtr(void *Ptr); 192 static CanQual<T> CreateUnsafe(QualType Other); 241 CanQual<T> Stored; 245 const T *getTypePtr() const { return Stored.getTypePtr(); } 254 operator const T*() const { return this->Stored.getTypePtrOrNull(); } 258 template<typename U> CanProxy<U> getAs() const { 259 return this->Stored.template getAs<U>(); 321 const CanProxyAdaptor<T> *operator->() const { 347 class CanProxy : public CanProxyAdaptor<T> { 353 CanProxy(CanQual<T> Stored) { this->Stored = Stored; } 356 operator CanQual<T>() const { return this->Stored; } 485 struct CanProxyAdaptor<FunctionType> : public CanProxyBase<FunctionType> { 644 CanQual<T> Result; 658 if (isa<U>(Stored.getTypePtr())) 659 return CanQual<U>::CreateUnsafe(Stored);tools/clang/include/clang/AST/Decl.h
2373 return getType()->castAs<FunctionType>()->getReturnType(); 2386 return T->castAs<FunctionType>()->getReturnType(); 2403 return getType()->castAs<FunctionType>()->getCallResultType(tools/clang/include/clang/AST/DeclBase.h
1154 const FunctionType *getFunctionType(bool BlocksToo = true) const;
tools/clang/include/clang/AST/DeclCXX.h1945 bool isConst() const { return getType()->castAs<FunctionType>()->isConst(); } 1946 bool isVolatile() const { return getType()->castAs<FunctionType>()->isVolatile(); } 2728 return getType()->castAs<FunctionType>()->getReturnType();tools/clang/include/clang/AST/JSONNodeDumper.h
203 void VisitFunctionType(const FunctionType *T);
tools/clang/include/clang/AST/TextNodeDumper.h 284 void VisitFunctionType(const FunctionType *T);
tools/clang/include/clang/AST/Type.h2237 template <typename T> const T *getAs() const; 3688 class FunctionNoProtoType : public FunctionType, public llvm::FoldingSetNode { 3726 : public FunctionType, 3729 FunctionProtoType, QualType, FunctionType::FunctionTypeExtraBitfields, 3730 FunctionType::ExceptionType, Expr *, FunctionDecl *, 3731 FunctionType::ExtParameterInfo, Qualifiers> { 3806 FunctionType::ExtInfo ExtInfo; 6204 return !isa<FunctionType>(T) && !isa<ArrayType>(T); 6291 inline FunctionType::ExtInfo getFunctionExtInfo(const Type &t) { 6293 if (const auto *FT = PT->getPointeeType()->getAs<FunctionType>()) 6293 if (const auto *FT = PT->getPointeeType()->getAs<FunctionType>()) 6295 } else if (const auto *FT = t.getAs<FunctionType>()) 6295 } else if (const auto *FT = t.getAs<FunctionType>()) 6301 inline FunctionType::ExtInfo getFunctionExtInfo(QualType t) { 6388 return isa<FunctionType>(CanonicalType); 6859 static_assert(!TypeIsArrayType<T>::value, 6863 if (const auto *Ty = dyn_cast<T>(this)) 6863 if (const auto *Ty = dyn_cast<T>(this)) 6867 if (!isa<T>(CanonicalType)) 6872 return cast<T>(getUnqualifiedDesugaredType()); 6875 template <typename T> const T *Type::getAsAdjusted() const { 6876 static_assert(!TypeIsArrayType<T>::value, "ArrayType cannot be used with getAsAdjusted!"); 6879 if (const auto *Ty = dyn_cast<T>(this)) 6879 if (const auto *Ty = dyn_cast<T>(this)) 6883 if (!isa<T>(CanonicalType)) 6906 return dyn_cast<T>(Ty); 6923 template <typename T> const T *Type::castAs() const { 6924 static_assert(!TypeIsArrayType<T>::value, 6927 if (const auto *ty = dyn_cast<T>(this)) return ty; 6927 if (const auto *ty = dyn_cast<T>(this)) return ty; 6929 return cast<T>(getUnqualifiedDesugaredType());tools/clang/include/clang/AST/TypeLoc.h
370 return TypeClass::classof(Ty); 405 const TypeClass *getTypePtr() const { 406 return cast<TypeClass>(Base::getTypePtr()); 1364 FunctionType,tools/clang/include/clang/ASTMatchers/ASTMatchers.h
5600 extern const AstTypeMatcher<FunctionType> functionType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 445 template <typename T> Matcher<T> convertTo() const { 447 return unconditionalConvertTo<T>(); 499 explicit Matcher(MatcherInterface<T> *Implementation) 520 std::is_same<T, QualType>::value && 529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call."); 534 bool matches(const T &Node, 581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 1243 operator Matcher<T>() const { 1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) 1246 .template unconditionalConvertTo<T>(); 1255 class BindableMatcher : public Matcher<T> { 1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {} 1258 explicit BindableMatcher(MatcherInterface<T> *Implementation) 1265 Matcher<T> bind(StringRef ID) const { 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const { 1376 BindableMatcher<T> makeAllOfComposite( 1377 ArrayRef<const Matcher<T> *> InnerMatchers) { 1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>; 1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(), 1397 .template unconditionalConvertTo<T>()); 1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) { 1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>, 1558 makeDynCastAllOfComposite<SourceT, TargetT>> {tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
199 ast_matchers::internal::Matcher<T> getTypedMatcher() const { 202 ->template convertTo<T>(); 227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {} 228 typedef ast_matchers::internal::Matcher<T> MatcherT; 232 return DynTypedMatcher(Matcher.convertTo<T>());tools/clang/include/clang/Analysis/RetainSummaryManager.h
513 const RetainSummary *getUnarySummary(const FunctionType* FT, 613 const FunctionType *FT,tools/clang/include/clang/CodeGen/CGFunctionInfo.h
547 const FunctionType::ExtInfo &extInfo, 626 FunctionType::ExtInfo getExtInfo() const { 683 const FunctionType::ExtInfo &info,tools/clang/include/clang/CodeGen/CodeGenABITypes.h
71 FunctionType::ExtInfo info,
tools/clang/include/clang/Sema/CodeCompleteConsumer.h1035 const FunctionType *Type; 1045 OverloadCandidate(const FunctionType *Type) 1063 const FunctionType *getFunctionType() const;tools/clang/include/clang/Sema/Sema.h
9196 std::string getOpenCLExtensionsFromTypeExtMap(FunctionType *FT); 9200 std::string getOpenCLExtensionsFromExtMap(T* FT, MapT &Map);tools/clang/lib/AST/ASTContext.cpp
2812 const FunctionType *ASTContext::adjustFunctionType(const FunctionType *T, 2812 const FunctionType *ASTContext::adjustFunctionType(const FunctionType *T, 2813 FunctionType::ExtInfo Info) { 2827 return cast<FunctionType>(Result.getTypePtr()); 3679 const FunctionType::ExtInfo &Info) const { 3880 QualType, FunctionType::FunctionTypeExtraBitfields, 3881 FunctionType::ExceptionType, Expr *, FunctionDecl *, 5160 } else if (isa<FunctionType>(Ty)) { 6327 QualType BlockReturnTy = BlockTy->castAs<FunctionType>()->getReturnType(); 6995 const auto *FT = BT->getPointeeType()->castAs<FunctionType>(); 6995 const auto *FT = BT->getPointeeType()->castAs<FunctionType>(); 8648 const auto *lbase = lhs->getAs<FunctionType>(); 8648 const auto *lbase = lhs->getAs<FunctionType>(); 8649 const auto *rbase = rhs->getAs<FunctionType>(); 8649 const auto *rbase = rhs->getAs<FunctionType>(); 8690 FunctionType::ExtInfo lbaseInfo = lbase->getExtInfo(); 8691 FunctionType::ExtInfo rbaseInfo = rbase->getExtInfo(); 8718 FunctionType::ExtInfo einfo = lbaseInfo.withNoReturn(NoReturn); 9233 cast<FunctionType>(RHSCan.getTypePtr())->getReturnType(); 9235 cast<FunctionType>(LHSCan.getTypePtr())->getReturnType(); 9243 const auto *F = LHS->castAs<FunctionType>(); 9243 const auto *F = LHS->castAs<FunctionType>(); 9739 FunctionType::ExtInfo EI(getDefaultCallingConvention(tools/clang/lib/AST/ASTDiagnostic.cpp
75 if (const FunctionType *FT = dyn_cast<FunctionType>(Ty)) { 75 if (const FunctionType *FT = dyn_cast<FunctionType>(Ty)) {tools/clang/lib/AST/ASTStructuralEquivalence.cpp
382 FunctionType::ExtInfo EI1, 383 FunctionType::ExtInfo EI2) { 656 const auto *Function1 = cast<FunctionType>(T1); 656 const auto *Function1 = cast<FunctionType>(T1); 657 const auto *Function2 = cast<FunctionType>(T2); 657 const auto *Function2 = cast<FunctionType>(T2);tools/clang/lib/AST/Decl.cpp
1630 FT = dyn_cast<FunctionProtoType>(FD->getType()->castAs<FunctionType>()); 3058 if (auto *FnTy = getType()->getAs<FunctionType>())tools/clang/lib/AST/DeclBase.cpp
952 const FunctionType *Decl::getFunctionType(bool BlocksToo) const { 968 return Ty->getAs<FunctionType>();tools/clang/lib/AST/DeclPrinter.cpp
153 else if (const FunctionType* FTy = BaseType->getAs<FunctionType>()) 153 else if (const FunctionType* FTy = BaseType->getAs<FunctionType>()) 651 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) { 651 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) {tools/clang/lib/AST/Expr.cpp
735 const FunctionType *AFT = Decl->getType()->getAs<FunctionType>(); 735 const FunctionType *AFT = Decl->getType()->getAs<FunctionType>(); 1511 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); 1511 const FunctionType *FnType = CalleeType->castAs<FunctionType>();tools/clang/lib/AST/ItaniumMangle.cpp
525 void mangleExtFunctionInfo(const FunctionType *T); 1303 FD->getType()->castAs<FunctionType>()->getCallConv() == 2762 void CXXNameMangler::mangleExtFunctionInfo(const FunctionType *T) { 4891 cast<FunctionProtoType>(FD->getType()->getAs<FunctionType>());tools/clang/lib/AST/JSONNodeDumper.cpp
489 void JSONNodeDumper::VisitFunctionType(const FunctionType *T) { 490 FunctionType::ExtInfo E = T->getExtInfo(); 495 JOS.attribute("cc", FunctionType::getNameForCallConv(E.getCC()));tools/clang/lib/AST/Mangle.cpp
80 const FunctionType *FT = T->castAs<FunctionType>(); 80 const FunctionType *FT = T->castAs<FunctionType>(); 174 const FunctionType *FT = FD->getType()->castAs<FunctionType>(); 174 const FunctionType *FT = FD->getType()->castAs<FunctionType>();tools/clang/lib/AST/MicrosoftMangle.cpp
327 void mangleFunctionType(const FunctionType *T, 377 void mangleCallingConvention(const FunctionType *T); 1907 if (const FunctionType *FT = dyn_cast<FunctionType>(T)) { 1907 if (const FunctionType *FT = dyn_cast<FunctionType>(T)) { 2169 void MicrosoftCXXNameMangler::mangleFunctionType(const FunctionType *T, 2412 void MicrosoftCXXNameMangler::mangleCallingConvention(const FunctionType *T) {tools/clang/lib/AST/ODRHash.cpp
876 void VisitFunctionType(const FunctionType *T) {
tools/clang/lib/AST/StmtPrinter.cpp 2404 const FunctionType *AFT = Node->getFunctionType();
tools/clang/lib/AST/TextNodeDumper.cpp1131 void TextNodeDumper::VisitFunctionType(const FunctionType *T) { 1139 OS << " " << FunctionType::getNameForCallConv(EI.getCC());tools/clang/lib/AST/Type.cpp
1243 QualType VisitFunctionType(const FunctionType *funcType) { 1259 return BaseType::VisitFunctionType(funcType); 1308 return BaseType::VisitFunctionType(funcType); 1779 Type *VisitFunctionType(const FunctionType *T) { 1812 return dyn_cast_or_null<FunctionType>( 3688 return Cache::get(cast<FunctionType>(T)->getReturnType()); 3773 return computeTypeLinkageInfo(cast<FunctionType>(T)->getReturnType());tools/clang/lib/AST/TypePrinter.cpp
123 void printFunctionAfter(const FunctionType::ExtInfo &Info, raw_ostream &OS); 817 FunctionType::ExtInfo Info = T->getExtInfo(); 845 void TypePrinter::printFunctionAfter(const FunctionType::ExtInfo &Info, 1344 if (!HasEmptyPlaceHolder && !isa<FunctionType>(T->getInnerType())) { 1352 if (!HasEmptyPlaceHolder && !isa<FunctionType>(T->getInnerType())) { 1472 !T->getEquivalentType()->castAs<FunctionType>() 1541 OS << (t->castAs<FunctionType>()->getCallConv() == CC_AAPCS ?tools/clang/lib/AST/VTableBuilder.cpp
273 const FunctionType *BaseFT = BaseMD->getType()->getAs<FunctionType>(); 273 const FunctionType *BaseFT = BaseMD->getType()->getAs<FunctionType>(); 274 const FunctionType *DerivedFT = DerivedMD->getType()->getAs<FunctionType>(); 274 const FunctionType *DerivedFT = DerivedMD->getType()->getAs<FunctionType>();tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
817 const AstTypeMatcher<FunctionType> functionType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>(); 78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) { 79 return Value.getMatcher().getTypedMatcher<T>(); 83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func, 469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) { 778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>tools/clang/lib/Analysis/CFG.cpp
2554 const FunctionType *FT = Ty->getAs<FunctionType>(); 2554 const FunctionType *FT = Ty->getAs<FunctionType>();tools/clang/lib/Analysis/RetainSummaryManager.cpp
287 const FunctionType *FT, 507 const auto *FT = FD->getType()->castAs<FunctionType>(); 507 const auto *FT = FD->getType()->castAs<FunctionType>(); 779 RetainSummaryManager::getUnarySummary(const FunctionType* FT,tools/clang/lib/CodeGen/Address.h
108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBlocks.cpp1301 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); 1301 const FunctionType *FuncTy = FnType->castAs<FunctionType>();tools/clang/lib/CodeGen/CGCXX.cpp
107 if (BaseD->getType()->castAs<FunctionType>()->getCallConv() != 108 D->getType()->castAs<FunctionType>()->getCallConv())tools/clang/lib/CodeGen/CGCall.cpp
267 const FunctionType *FT = FTy->getAs<FunctionType>(); 267 const FunctionType *FT = FTy->getAs<FunctionType>(); 343 FunctionType::ExtInfo extInfo = FTP->getExtInfo(); 416 FunctionType::ExtInfo Info = FPT->getExtInfo(); 484 FunctionType::ExtInfo einfo; 504 FunctionType::ExtInfo einfo; 565 const FunctionType *fnType, 611 const FunctionType *fnType, 621 const FunctionType *fnType) { 688 FunctionType::ExtInfo info = proto->getExtInfo(); 740 FunctionType::ExtInfo info, 798 const FunctionType::ExtInfo &info,tools/clang/lib/CodeGen/CGDebugInfo.cpp
1194 llvm::DIType *CGDebugInfo::CreateType(const FunctionType *Ty, 3040 return CreateType(cast<FunctionType>(Ty), Unit); 3342 CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv(); 3476 const auto *FTy = FnType->getAs<FunctionType>(); 3476 const auto *FTy = FnType->getAs<FunctionType>();tools/clang/lib/CodeGen/CGDebugInfo.h
163 llvm::DIType *CreateType(const FunctionType *Ty, llvm::DIFile *F);
tools/clang/lib/CodeGen/CGExpr.cpp4838 const auto *FnType = cast<FunctionType>(PointeeType); 4838 const auto *FnType = cast<FunctionType>(PointeeType);tools/clang/lib/CodeGen/CGExprComplex.cpp
640 Args, cast<FunctionType>(FQTy.getTypePtr()), false);
tools/clang/lib/CodeGen/CGVTables.cpp 507 MD->getType()->castAs<FunctionType>());
tools/clang/lib/CodeGen/CodeGenABITypes.cpp 59 FunctionType::ExtInfo info,
tools/clang/lib/CodeGen/CodeGenFunction.cpp856 if (const auto *SrcFnTy = FD->getType()->getAs<FunctionType>()) 856 if (const auto *SrcFnTy = FD->getType()->getAs<FunctionType>()) 1963 type = cast<FunctionType>(ty)->getReturnType();tools/clang/lib/CodeGen/CodeGenModule.cpp
1005 FD->getType()->castAs<FunctionType>()->getCallConv() == CC_X86RegCall) {
tools/clang/lib/CodeGen/CodeGenTypes.cpp228 bool CodeGenTypes::isFuncTypeConvertible(const FunctionType *FT) { 314 const FunctionType *FT = cast<FunctionType>(QFT.getTypePtr()); 314 const FunctionType *FT = cast<FunctionType>(QFT.getTypePtr());tools/clang/lib/CodeGen/CodeGenTypes.h
147 bool isFuncTypeConvertible(const FunctionType *FT); 203 const FunctionType *Ty, 236 const FunctionType *type); 270 FunctionType::ExtInfo info,tools/clang/lib/CodeGen/TargetInfo.cpp
7915 void setCUDAKernelCallingConvention(const FunctionType *&FT) const override; 8110 const FunctionType *&FT) const { 9207 if (const FunctionType *FT = QT->getAs<FunctionType>()) 9207 if (const FunctionType *FT = QT->getAs<FunctionType>())tools/clang/lib/CodeGen/TargetInfo.h
317 virtual void setCUDAKernelCallingConvention(const FunctionType *&FT) const {}
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp327 const FunctionType *&FPRetType); 520 QualType convertFunctionTypeOfBlocks(const FunctionType *FT); 962 const FunctionType *FPRetType = nullptr; 1205 const FunctionType *&FPRetType) { 1218 if ((FPRetType = PointeeTy->getAs<FunctionType>())) { 1231 const FunctionType *FPRetType = nullptr; 2106 const auto *FT = msgSendType->castAs<FunctionType>(); 2106 const auto *FT = msgSendType->castAs<FunctionType>(); 2201 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2201 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2376 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2376 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2687 const FunctionType *FT = msgSendType->getAs<FunctionType>(); 2687 const FunctionType *FT = msgSendType->getAs<FunctionType>(); 2808 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 2808 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 2959 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 2959 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 3532 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 3532 const FunctionType *FT = msgSendType->castAs<FunctionType>(); 4040 const FunctionType *AFT = CE->getFunctionType(); 4511 if (const FunctionType *FT = PointeeTy->getAs<FunctionType>()) { 4511 if (const FunctionType *FT = PointeeTy->getAs<FunctionType>()) { 4526 QualType RewriteModernObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) { 4586 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>(); 4586 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>();tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
275 const FunctionType *&FPRetType); 429 QualType convertFunctionTypeOfBlocks(const FunctionType *FT); 809 const FunctionType *FPRetType = nullptr; 1037 const FunctionType *&FPRetType) { 1050 if ((FPRetType = PointeeTy->getAs<FunctionType>())) { 1063 const FunctionType *FPRetType = nullptr; 2021 const auto *FT = msgSendType->castAs<FunctionType>(); 2021 const auto *FT = msgSendType->castAs<FunctionType>(); 2117 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2117 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2288 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2288 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); 2608 const auto *FT = msgSendType->castAs<FunctionType>(); 2608 const auto *FT = msgSendType->castAs<FunctionType>(); 2961 const auto *FT = msgSendType->castAs<FunctionType>(); 2961 const auto *FT = msgSendType->castAs<FunctionType>(); 3254 const FunctionType *AFT = CE->getFunctionType(); 3692 QualType RewriteObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) { 3754 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>(); 3754 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>();tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
658 if (const FunctionType *FT = 659 BlockType->getPointeeType()->getAs<FunctionType>()) {tools/clang/lib/Sema/CodeCompleteConsumer.cpp
495 const FunctionType * 499 return Function->getType()->getAs<FunctionType>(); 504 ->getAs<FunctionType>();tools/clang/lib/Sema/Sema.cpp
2009 const FunctionType *FunTy = nullptr; 2012 FunTy = PointeeTy->getAs<FunctionType>(); 2014 FunTy = ExprTy->getAs<FunctionType>(); 2224 std::string Sema::getOpenCLExtensionsFromTypeExtMap(FunctionType *FT) {tools/clang/lib/Sema/SemaCast.cpp
1883 const auto *SrcFTy = 1884 SrcType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); 1885 const auto *DstFTy = 1886 DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>(); 1915 StringRef SrcCCName = FunctionType::getNameForCallConv(SrcCC); 1916 StringRef DstCCName = FunctionType::getNameForCallConv(DstCC);tools/clang/lib/Sema/SemaChecking.cpp
1397 const auto *FuncType = 1398 FnPtrArgType->getPointeeType()->getAs<FunctionType>(); 5525 CC = FD->getType()->castAs<FunctionType>()->getCallConv();tools/clang/lib/Sema/SemaCodeComplete.cpp
926 if (const auto *Function = T->getAs<FunctionType>()) { 926 if (const auto *Function = T->getAs<FunctionType>()) { 3666 const FunctionType *FT = getFunctionType(); 5077 if (const auto *FType = Candidate.getFunctionType()) 5189 } else if (auto FT = T->getAs<FunctionType>())tools/clang/lib/Sema/SemaDecl.cpp
3281 const FunctionType *OldType = cast<FunctionType>(OldQType); 3281 const FunctionType *OldType = cast<FunctionType>(OldQType); 3282 const FunctionType *NewType = cast<FunctionType>(NewQType); 3282 const FunctionType *NewType = cast<FunctionType>(NewQType); 3283 FunctionType::ExtInfo OldTypeInfo = OldType->getExtInfo(); 3284 FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); 3289 const FunctionType *FT = 3290 First->getType().getCanonicalType()->castAs<FunctionType>(); 3291 FunctionType::ExtInfo FI = FT->getExtInfo(); 3303 << FunctionType::getNameForCallConv(NewTypeInfo.getCC()) 3311 << FunctionType::getNameForCallConv(NewTypeInfo.getCC()) 3314 FunctionType::getNameForCallConv(FI.getCC())); 3371 const FunctionType *AdjustedType = New->getType()->getAs<FunctionType>(); 3371 const FunctionType *AdjustedType = New->getType()->getAs<FunctionType>(); 3451 QualType NewReturnType = cast<FunctionType>(NewQType)->getReturnType(); 3570 const FunctionType *OldTypeForComparison 3616 const FunctionType *OldFuncType = OldQType->getAs<FunctionType>(); 3616 const FunctionType *OldFuncType = OldQType->getAs<FunctionType>(); 3617 const FunctionType *NewFuncType = NewQType->getAs<FunctionType>(); 3617 const FunctionType *NewFuncType = NewQType->getAs<FunctionType>(); 8164 (!R->getAsAdjusted<FunctionType>() && R->isFunctionProtoType()); 8191 D.getIdentifierLoc(), R->castAs<FunctionType>()->getReturnType(), 9101 const FunctionType *FT = NewFD->getType()->castAs<FunctionType>(); 9101 const FunctionType *FT = NewFD->getType()->castAs<FunctionType>(); 9110 << FunctionType::getNameForCallConv(CC); 9376 const FunctionType *FT = NewFD->getType()->getAs<FunctionType>(); 9376 const FunctionType *FT = NewFD->getType()->getAs<FunctionType>(); 9422 if (!R->getAs<FunctionType>()->getReturnType()->isScalarType()) 9786 const auto *NewType = cast<FunctionType>(NewQType); 9786 const auto *NewType = cast<FunctionType>(NewQType); 9796 const auto *OldType = cast<FunctionType>(OldQType); 9796 const auto *OldType = cast<FunctionType>(OldQType); 9797 FunctionType::ExtInfo OldTypeInfo = OldType->getExtInfo(); 9798 FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); 10614 const FunctionType* FT = T->castAs<FunctionType>(); 10614 const FunctionType* FT = T->castAs<FunctionType>(); 10734 const FunctionType *FT = T->castAs<FunctionType>(); 10734 const FunctionType *FT = T->castAs<FunctionType>();tools/clang/lib/Sema/SemaDeclAttr.cpp
80 if (const FunctionType *FnTy = D->getFunctionType()) 89 if (const FunctionType *FnTy = D->getFunctionType()) 108 if (const FunctionType *FnTy = D->getFunctionType()) 123 if (const FunctionType *FnTy = D->getFunctionType()) 137 if (const FunctionType *FnTy = D->getFunctionType()) 2680 const FunctionType *FT = FD->getType()->castAs<FunctionType>(); 2680 const FunctionType *FT = FD->getType()->castAs<FunctionType>(); 2703 const FunctionType *FT = Ty->isFunctionPointerType() 2705 : Ty->castAs<BlockPointerType>()->getPointeeType()->getAs<FunctionType>();tools/clang/lib/Sema/SemaDeclCXX.cpp
13710 FnDecl->getType()->getAs<FunctionType>()->getReturnType(); 15357 QualType NewTy = New->getType()->getAs<FunctionType>()->getReturnType(); 15358 QualType OldTy = Old->getType()->getAs<FunctionType>()->getReturnType();tools/clang/lib/Sema/SemaExpr.cpp
361 const FunctionType *fn = nullptr; 363 fn = ptr->getPointeeType()->getAs<FunctionType>(); 367 fn = ptr->getPointeeType()->castAs<FunctionType>(); 3116 const FunctionType *fty = type->castAs<FunctionType>(); 3116 const FunctionType *fty = type->castAs<FunctionType>(); 4111 T = cast<FunctionType>(Ty)->getReturnType(); 5836 const FunctionType *FuncT = nullptr; 5842 FuncT = PT->getPointeeType()->getAs<FunctionType>(); 5848 FuncT = BPT->getPointeeType()->castAs<FunctionType>(); 14162 const FunctionType *Fn = T->getAs<FunctionType>(); 14162 const FunctionType *Fn = T->getAs<FunctionType>(); 14267 const FunctionType *FTy = BSI->FunctionType->castAs<FunctionType>(); 14267 const FunctionType *FTy = BSI->FunctionType->castAs<FunctionType>(); 14269 FunctionType::ExtInfo Ext = FTy->getExtInfo(); 15282 CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv(); 15313 CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv(); 17530 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); 17530 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); 17701 const FunctionType *FnType = FDT->castAs<FunctionType>(); 17701 const FunctionType *FnType = FDT->castAs<FunctionType>();tools/clang/lib/Sema/SemaExprCXX.cpp
6395 const FunctionType *FTy = T->getAs<FunctionType>(); 6395 const FunctionType *FTy = T->getAs<FunctionType>();tools/clang/lib/Sema/SemaLookup.cpp
2896 const FunctionType *FnType = cast<FunctionType>(T); 2896 const FunctionType *FnType = cast<FunctionType>(T);tools/clang/lib/Sema/SemaOverload.cpp
1518 const auto *FromFn = cast<FunctionType>(CanFrom); 1518 const auto *FromFn = cast<FunctionType>(CanFrom); 1519 FunctionType::ExtInfo FromEInfo = FromFn->getExtInfo(); 1521 const auto *ToFn = cast<FunctionType>(CanTo); 1521 const auto *ToFn = cast<FunctionType>(CanTo); 1522 FunctionType::ExtInfo ToEInfo = ToFn->getExtInfo(); 1536 FromFn = cast<FunctionType>( 1556 FromFn = QT->getAs<FunctionType>(); 2713 FunctionType::ExtInfo FromEInfo = FromFunctionType->getExtInfo(); 2714 FunctionType::ExtInfo ToEInfo = ToFunctionType->getExtInfo(); 6089 = dyn_cast<FunctionProtoType>(Function->getType()->getAs<FunctionType>()); 6676 = dyn_cast<FunctionProtoType>(Method->getType()->getAs<FunctionType>()); 10739 FnType = QualType(FnType->getAs<FunctionType>(), 0); 11994 if (!dyn_cast<FunctionProtoType>(Func->getType()->getAs<FunctionType>()))tools/clang/lib/Sema/SemaStmt.cpp
3314 if (CurBlock->FunctionType->castAs<FunctionType>()->getNoReturnAttr()) { 3324 ->castAs<FunctionType>()tools/clang/lib/Sema/SemaTemplateDeduction.cpp
1148 const FunctionType *ParamFunction = Param->getAs<FunctionType>(), 1148 const FunctionType *ParamFunction = Param->getAs<FunctionType>(), 1149 *ArgFunction = Arg->getAs<FunctionType>();tools/clang/lib/Sema/SemaType.cpp
1963 << QFK << isa<FunctionType>(T.IgnoreParens()) << T 4762 FunctionType::ExtInfo EI( 6332 const FunctionType *Fn; 6338 if (isa<FunctionType>(Ty)) { 6339 Fn = cast<FunctionType>(Ty); 6373 const FunctionType *get() const { return Fn; } 6375 QualType wrap(Sema &S, const FunctionType *New) { 6858 FunctionType::ExtInfo EI = unwrapped.get()->getExtInfo().withNoReturn(true); 6880 FunctionType::ExtInfo EI 6898 FunctionType::ExtInfo EI = 6919 FunctionType::ExtInfo EI = 6935 const FunctionType *fn = unwrapped.get(); 6939 << FunctionType::getNameForCallConv(CC) 6945 FunctionType::ExtInfo EI = 6998 ->getAs<FunctionType>()); 7010 const FunctionType *fn = unwrapped.get(); 7019 << FunctionType::getNameForCallConv(CC) 7020 << FunctionType::getNameForCallConv(CCOld); 7040 << FunctionType::getNameForCallConv(CC) 7045 << FunctionType::getNameForCallConv(CC); 7052 << "regparm" << FunctionType::getNameForCallConv(CC_X86FastCall); 7089 const FunctionType *FT = Unwrapped.get(); 7105 << FunctionType::getNameForCallConv(CurCC)tools/clang/lib/Serialization/ASTReader.cpp
6498 FunctionType::ExtInfo Info(Record[1], Record[2], Record[3],
tools/clang/lib/Serialization/ASTReaderDecl.cpp 845 FD->getTypeSourceInfo()->getType()->castAs<FunctionType>()
tools/clang/lib/Serialization/ASTWriter.cpp175 void VisitFunctionType(const FunctionType *T); 270 void ASTTypeWriter::VisitFunctionType(const FunctionType *T) { 272 FunctionType::ExtInfo C = T->getExtInfo();tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
750 const FunctionType *FuncType = Decl->getFunctionType();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp479 if (const FunctionType *FT = Ty->getAs<FunctionType>()) 479 if (const FunctionType *FT = Ty->getAs<FunctionType>())tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp
57 const auto *TargetT = 58 llvm::dyn_cast_or_null<FunctionType>(Target->getType().getTypePtr());tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
912 if (!T->getAs<FunctionType>())
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp43 ->getAs<FunctionType>() 47 ->getAs<FunctionType>()tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
481 !OperatorDecl->getType()->castAs<FunctionType>()->isConst())
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp62 const auto *Pointee = T->getPointeeType()->castAs<FunctionType>(); 62 const auto *Pointee = T->getPointeeType()->castAs<FunctionType>();tools/clang/tools/extra/clangd/ExpectedTypes.cpp
58 if (auto FuncT = T->getAs<FunctionType>()) {
tools/clang/tools/libclang/CIndex.cpp792 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) { 792 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) {tools/clang/tools/libclang/CXType.cpp
647 if (const FunctionType *FD = T->getAs<FunctionType>()) { 647 if (const FunctionType *FD = T->getAs<FunctionType>()) { 713 if (const FunctionType *FD = T->getAs<FunctionType>()) 713 if (const FunctionType *FD = T->getAs<FunctionType>())tools/lldb/source/Symbol/ClangASTContext.cpp
8144 const clang::FunctionType *function_type = 8145 llvm::dyn_cast<clang::FunctionType>(method_qual_type.getTypePtr());usr/include/c++/7.4.0/type_traits
215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type 326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type 354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type 381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type 567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type 581 : public __or_<is_lvalue_reference<_Tp>, 582 is_rvalue_reference<_Tp>>::type 588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type 588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type 777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>> 777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>> 798 typedef decltype(__test<_Tp>(0)) type; 811 remove_all_extents<_Tp>::type>::type 825 : public __is_destructible_safe<_Tp>::type 1447 : public __and_<is_destructible<_Tp>, integral_constant<bool, 1554 { typedef _Tp type; }; 1563 { typedef _Tp type; }; 1574 remove_const<typename remove_volatile<_Tp>::type>::type type; 1659 { typedef _Tp&& type; }; 1955 { typedef _Tp type; };