|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/AST/ASTNodeTraverser.h 303 void VisitFunctionType(const FunctionType *T) { Visit(T->getReturnType()); }
tools/clang/include/clang/AST/Decl.h 2373 return getType()->castAs<FunctionType>()->getReturnType();
2386 return T->castAs<FunctionType>()->getReturnType();
tools/clang/include/clang/AST/DeclCXX.h 2728 return getType()->castAs<FunctionType>()->getReturnType();
tools/clang/include/clang/AST/RecursiveASTVisitor.h 1004 { TRY_TO(TraverseType(T->getReturnType())); })
1007 TRY_TO(TraverseType(T->getReturnType()));
tools/clang/include/clang/AST/Type.h 3675 return getReturnType().getNonLValueExprType(Context);
3704 Profile(ID, getReturnType(), getExtInfo());
tools/clang/include/clang/AST/TypeLoc.h 1474 QualType getInnerType() const { return getTypePtr()->getReturnType(); }
tools/clang/lib/AST/ASTContext.cpp 2819 Result = getFunctionNoProtoType(FNPT->getReturnType(), Info);
2824 Result = getFunctionType(FPT->getReturnType(), FPT->getParamTypes(), EPI);
2874 Proto->getReturnType(), Proto->getParamTypes(),
6327 QualType BlockReturnTy = BlockTy->castAs<FunctionType>()->getReturnType();
6999 getObjCEncodingForTypeImpl(FT->getReturnType(), S,
8658 QualType RHS = rbase->getReturnType();
8659 QualType LHS = lbase->getReturnType();
8666 retType = mergeTypes(lbase->getReturnType(), rbase->getReturnType(), false,
8666 retType = mergeTypes(lbase->getReturnType(), rbase->getReturnType(), false,
8674 CanQualType LRetType = getCanonicalType(lbase->getReturnType());
8675 CanQualType RRetType = getCanonicalType(rbase->getReturnType());
9233 cast<FunctionType>(RHSCan.getTypePtr())->getReturnType();
9235 cast<FunctionType>(LHSCan.getTypePtr())->getReturnType();
tools/clang/lib/AST/ASTDiagnostic.cpp 77 QualType SugarRT = FT->getReturnType();
tools/clang/lib/AST/ASTImporter.cpp 1181 ExpectedType ToReturnTypeOrErr = import(T->getReturnType());
1191 ExpectedType ToReturnTypeOrErr = import(T->getReturnType());
3130 FromFPT->getReturnType(), FromFPT->getParamTypes(), DefaultEPI);
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 658 if (!IsStructurallyEquivalent(Context, Function1->getReturnType(),
659 Function2->getReturnType()))
tools/clang/lib/AST/DeclPrinter.cpp 154 BaseType = FTy->getReturnType();
734 AFT->getReturnType().print(Out, Policy, Proto);
tools/clang/lib/AST/Expr.cpp 846 else if (FT && FT->getReturnType()->getAs<DecltypeType>())
847 FT->getReturnType()
852 AFT->getReturnType().getAsStringInternal(Proto, Policy);
1512 return FnType->getReturnType();
tools/clang/lib/AST/ItaniumMangle.cpp 2854 mangleType(T->getReturnType());
2877 QualType ReturnTy = Proto->getReturnType();
4894 TrackReturnTypeTags.mangleType(Proto->getReturnType());
tools/clang/lib/AST/MicrosoftMangle.cpp 2253 QualType ResultType = T->getReturnType();
tools/clang/lib/AST/ODRHash.cpp 877 AddQualType(T->getReturnType());
tools/clang/lib/AST/StmtPrinter.cpp 1990 Proto->getReturnType().print(OS, Policy);
tools/clang/lib/AST/Type.cpp 957 QualType returnType = recurse(T->getReturnType());
961 if (returnType.getAsOpaquePtr() == T->getReturnType().getAsOpaquePtr())
968 QualType returnType = recurse(T->getReturnType());
1008 if (returnType.getAsOpaquePtr() == T->getReturnType().getAsOpaquePtr() &&
1248 QualType returnType = funcType->getReturnType().substObjCTypeArgs(
1258 funcType->getReturnType().getAsOpaquePtr())
1306 funcProtoType->getReturnType().getAsOpaquePtr() &&
1780 return Visit(T->getReturnType());
3186 Profile(ID, getReturnType(), param_type_begin(), getNumParams(),
3688 return Cache::get(cast<FunctionType>(T)->getReturnType());
3691 CachedProperties result = Cache::get(FPT->getReturnType());
3773 return computeTypeLinkageInfo(cast<FunctionType>(T)->getReturnType());
3776 LinkageInfo LV = computeTypeLinkageInfo(FPT->getReturnType());
tools/clang/lib/AST/TypePrinter.cpp 761 printBefore(T->getReturnType(), OS);
840 print(T->getReturnType(), OS, StringRef());
842 printAfter(T->getReturnType(), OS);
927 printBefore(T->getReturnType(), OS);
941 printAfter(T->getReturnType(), OS);
tools/clang/lib/AST/VTableBuilder.cpp 278 Context.getCanonicalType(DerivedFT->getReturnType());
280 Context.getCanonicalType(BaseFT->getReturnType());
tools/clang/lib/Analysis/BodyFarm.cpp 45 return FT && FT->getReturnType()->isVoidType() && FT->getNumParams() == 0;
tools/clang/lib/Analysis/RetainSummaryManager.cpp 508 QualType RetTy = FT->getReturnType();
tools/clang/lib/CodeGen/CGBlocks.cpp 1587 StartFunction(blockDecl, fnType->getReturnType(), fn, fnInfo, args,
tools/clang/lib/CodeGen/CGCall.cpp 599 return CGT.arrangeLLVMFunctionInfo(GetReturnType(fnType->getReturnType()),
632 return arrangeLLVMFunctionInfo(GetReturnType(proto->getReturnType()),
690 GetReturnType(proto->getReturnType()), /*instanceMethod=*/true,
2904 RT = BlockInfo->BlockExpression->getFunctionType()->getReturnType();
tools/clang/lib/CodeGen/CGClass.cpp 2848 QualType resultType = FPT->getReturnType();
tools/clang/lib/CodeGen/CGDebugInfo.cpp 1199 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit));
tools/clang/lib/CodeGen/CGExpr.cpp 2411 CGM.getContext().getFunctionNoProtoType(Proto->getReturnType());
tools/clang/lib/CodeGen/CGVTables.cpp 161 QualType ResultType = FPT->getReturnType();
253 ResultType = MD->getType()->castAs<FunctionProtoType>()->getReturnType();
362 : FPT->getReturnType();
tools/clang/lib/CodeGen/CodeGenFunction.cpp 1963 type = cast<FunctionType>(ty)->getReturnType();
tools/clang/lib/CodeGen/CodeGenModule.cpp 5815 GeneralizeType(Ctx, FnType->getReturnType()),
5821 GeneralizeType(Ctx, FnType->getReturnType()));
tools/clang/lib/CodeGen/CodeGenTypes.cpp 229 if (!isFuncParamTypeConvertible(FT->getReturnType()))
323 if (const RecordType *RT = FT->getReturnType()->getAs<RecordType>())
tools/clang/lib/CodeGen/TargetInfo.cpp 9149 if (!appendType(Enc, FT->getReturnType(), CGM, TSC))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 1220 FPRetType->getReturnType().getAsString(Context->getPrintingPolicy());
2206 Type = proto->getReturnType();
2380 QualType Type = proto->getReturnType();
2688 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
2809 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
2960 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
3533 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
4041 QualType RT = AFT->getReturnType();
4531 QualType Res = FT->getReturnType();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 1052 FPRetType->getReturnType().getAsString(Context->getPrintingPolicy());
2122 Type = proto->getReturnType();
2292 QualType Type = proto->getReturnType();
2609 CallExpr *STCE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
2962 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(),
3255 QualType RT = AFT->getReturnType();
3697 QualType Res = FT->getReturnType();
tools/clang/lib/Index/USRGeneration.cpp 802 VisitType(FT->getReturnType());
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 660 if (FT->getReturnType()->isVoidType())
tools/clang/lib/Sema/Sema.cpp 2019 ZeroArgCallReturnTy = FunTy->getReturnType();
tools/clang/lib/Sema/SemaChecking.cpp 1415 if (!FT->isVariadic() || FT->getReturnType() != Context.IntTy ||
tools/clang/lib/Sema/SemaCodeComplete.cpp 927 T = Function->getReturnType();
2838 QualType ResultType = Block.getTypePtr()->getReturnType();
3668 FT->getReturnType().getAsString(Policy)));
3685 Proto->getReturnType().getAsString(Policy)));
4557 (BlockLoc.getTypePtr()->getReturnType()->isVoidType()
tools/clang/lib/Sema/SemaCoroutine.cpp 74 AddArg(FnType->getReturnType());
tools/clang/lib/Sema/SemaDecl.cpp 3450 QualType OldReturnType = OldType->getReturnType();
3451 QualType NewReturnType = cast<FunctionType>(NewQType)->getReturnType();
3626 Context.getFunctionType(NewFuncType->getReturnType(), ParamTypes,
3672 QualType MergedReturn = Context.mergeTypes(OldProto->getReturnType(),
3673 NewProto->getReturnType());
8191 D.getIdentifierLoc(), R->castAs<FunctionType>()->getReturnType(),
8779 SubstAutoType(FPT->getReturnType(), Context.DependentTy);
8910 FPT->getReturnType(), FPT->getParamTypes(),
9382 QualType R = Context.getFunctionType(FT->getReturnType(), None, EPI);
9422 if (!R->getAs<FunctionType>()->getReturnType()->isScalarType())
9787 QualType NewReturnType = NewType->getReturnType();
9803 QualType OldReturnType = OldType->getReturnType();
10330 MD->setType(Context.getFunctionType(FPT->getReturnType(),
10561 bool AnyNoexcept = HasNoexcept(FPT->getReturnType());
10629 if (Context.hasSameUnqualifiedType(FT->getReturnType(), Context.IntTy))
10644 if (Context.hasSameType(FT->getReturnType(), Context.IntTy))
10738 if (FT->getReturnType()->isIntegralOrEnumerationType() ||
10739 FT->getReturnType()->isAnyPointerType() ||
10740 FT->getReturnType()->isNullPtrType())
tools/clang/lib/Sema/SemaDeclAttr.cpp 124 return FnTy->getReturnType();
2726 D->getFunctionType()->getReturnType()->isVoidType() &&
tools/clang/lib/Sema/SemaDeclCXX.cpp 6908 ReturnType = Type->getReturnType();
7087 MD->setType(Context.getFunctionType(FPT->getReturnType(),
8677 if (Proto->getReturnType() == Context.VoidTy && !D.isInvalidType())
8964 if (Proto->getReturnType() != ConvType) {
9021 } else if (!Proto->getReturnType()->isDependentType()) {
9022 DB << /*typedef*/1 << Proto->getReturnType();
9024 DB << /*alias template*/2 << Proto->getReturnType();
9035 ConvType = Proto->getReturnType();
11591 DerivedCtor->setType(Context.getFunctionType(FPT->getReturnType(),
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/SemaExceptionSpec.cpp 341 NewProto->getReturnType(), NewProto->getParamTypes(),
369 NewProto->getReturnType(), NewProto->getParamTypes(),
878 Target->getReturnType(), TargetLoc, Source->getReturnType(),
878 Target->getReturnType(), TargetLoc, Source->getReturnType(),
tools/clang/lib/Sema/SemaExpr.cpp 3120 if (fty->getReturnType() == Context.UnknownAnyTy) {
3139 type = Context.getFunctionNoProtoType(fty->getReturnType(),
3160 if (proto->getReturnType() == Context.UnknownAnyTy) {
4111 T = cast<FunctionType>(Ty)->getReturnType();
5220 if (Proto->getReturnType() == Context.UnknownAnyTy && FDecl &&
5450 QualType OverloadTy = Context.getFunctionType(FT->getReturnType(),
5927 if (!FuncT->getReturnType()->isVoidType() &&
5928 !FuncT->getReturnType()->getAs<AutoType>() &&
5929 !FuncT->getReturnType()->isInstantiationDependentType())
5941 if (CheckCallReturnType(FuncT->getReturnType(), Fn->getBeginLoc(), TheCall,
5947 TheCall->setValueKind(Expr::getValueKindForType(FuncT->getReturnType()));
14163 QualType RetTy = Fn->getReturnType();
14280 } else if (FTy->getReturnType() == RetTy &&
tools/clang/lib/Sema/SemaExprCXX.cpp 6265 Composite1 = Context.getFunctionType(FPT1->getReturnType(),
6267 Composite2 = Context.getFunctionType(FPT2->getReturnType(),
tools/clang/lib/Sema/SemaLambda.cpp 373 QualType Result = FPT->getReturnType();
1270 return Context.getFunctionType(CallOpProto->getReturnType(),
tools/clang/lib/Sema/SemaLookup.cpp 2897 T = FnType->getReturnType().getTypePtr();
tools/clang/lib/Sema/SemaOverload.cpp 1554 QualType QT = Context.getFunctionType(FromFPT->getReturnType(),
2567 if (Context.getCanonicalType(FromFunctionType->getReturnType()) ==
2568 Context.getCanonicalType(ToFunctionType->getReturnType())) {
2570 } else if (isObjCPointerConversion(FromFunctionType->getReturnType(),
2571 ToFunctionType->getReturnType(),
2719 if (Context.hasSameType(FromFunctionType->getReturnType(),
2720 ToFunctionType->getReturnType())) {
2723 QualType RHS = FromFunctionType->getReturnType();
2724 QualType LHS = ToFunctionType->getReturnType();
2863 if (!Context.hasSameType(FromFunction->getReturnType(),
2864 ToFunction->getReturnType())) {
2865 PDiag << ft_return_type << ToFunction->getReturnType()
2866 << FromFunction->getReturnType();
13325 ExprValueKind valueKind = Expr::getValueKindForType(proto->getReturnType());
13351 if (CheckCallReturnType(proto->getReturnType(), op->getRHS()->getBeginLoc(),
tools/clang/lib/Sema/SemaStmt.cpp 3231 return FPT->getReturnType()->isUndeducedType();
tools/clang/lib/Sema/SemaTemplate.cpp 5577 return Visit(T->getReturnType());
5582 return Visit(T->getReturnType());
8429 FT = Context.getFunctionType(FPT->getReturnType(),
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 1682 S, TemplateParams, FunctionProtoParam->getReturnType(),
1683 FunctionProtoArg->getReturnType(), Info, Deduced, 0))
3091 SubstType(Proto->getReturnType(),
3993 return Context.getFunctionType(ArgFunctionTypeP->getReturnType(),
4793 S, TemplateParams, Proto2->getReturnType(), Proto1->getReturnType(),
4793 S, TemplateParams, Proto2->getReturnType(), Proto1->getReturnType(),
4842 ::MarkUsedTemplateParameters(S.Context, Proto2->getReturnType(), false,
5445 MarkUsedTemplateParameters(Ctx, Proto->getReturnType(), OnlyDeduced, Depth,
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 1755 return Context.getFunctionType(NewFunc->getReturnType(),
4084 NewProto->getReturnType(), NewProto->getParamTypes(), EPI));
tools/clang/lib/Sema/SemaType.cpp 5162 T = Context.getFunctionType(FnTy->getReturnType(), FnTy->getParamTypes(),
6874 unwrapped.get()->getReturnType()))
tools/clang/lib/Sema/TreeTransform.h 5457 if (getDerived().AlwaysRebuild() || ResultType != T->getReturnType() ||
5582 if (getDerived().AlwaysRebuild() || ResultType != T->getReturnType())
12751 getDerived().TransformType(exprFunctionType->getReturnType());
tools/clang/lib/Serialization/ASTReaderDecl.cpp 846 ->getReturnType()->getContainedAutoType()) {
3489 bool IsUndeduced = isUndeducedReturnType(FPT->getReturnType());
3490 bool WasUndeduced = isUndeducedReturnType(PrevFPT->getReturnType());
3494 (IsUndeduced ? PrevFPT : FPT)->getReturnType()});
4450 FPT->getReturnType(), FPT->getParamTypes(),
tools/clang/lib/Serialization/ASTWriter.cpp 271 Record.AddTypeRef(T->getReturnType());
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 753 QualType ReturnType = FuncType->getReturnType();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 480 Ty = FT->getReturnType();
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp 44 ->getReturnType()
48 ->getReturnType()
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 64 Pointee->getReturnType().IgnoreParens().getTypePtr(), ++Indirections);
tools/clang/tools/extra/clangd/ExpectedTypes.cpp 63 return FuncT->getReturnType();
tools/clang/tools/libclang/CXType.cpp 714 return MakeCXType(FD->getReturnType(), GetTU(X));
tools/lldb/source/Symbol/ClangASTContext.cpp 4526 return CompilerType(this, func->getReturnType().getAsOpaquePtr());
8218 function_type->getReturnType())),
8652 method_selector, method_function_prototype->getReturnType(),