| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.cpp | 305 const BuiltinType &ToType) const { in isWarningInhibitedByEquivalentSize() 310 uint64_t ToTypeSize = Context.getTypeSize(&ToType); in isWarningInhibitedByEquivalentSize() 380 const BuiltinType *ToType = getBuiltinType(Lhs); in handleIntegralCast() local 386 if (ToType->isUnsignedInteger()) in handleIntegralCast() 394 uint64_t ToTypeSize = Context.getTypeSize(ToType); in handleIntegralCast() 407 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralCast() 426 const BuiltinType *ToType = getBuiltinType(Lhs); in handleIntegralToFloating() local 437 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralToFloating() 457 const BuiltinType *ToType = getBuiltinType(Lhs); in handleFloatingToIntegral() local 484 const BuiltinType *ToType = getBuiltinType(Lhs); in handleFloatingCast() local [all …]
|
| H A D | NarrowingConversionsCheck.h | 98 const BuiltinType &ToType) const;
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOverload.cpp | 1611 ResultTy = ToType; in IsFunctionConversion() 1932 FromType = ToType; in IsStandardConversion() 1942 FromType = ToType; in IsStandardConversion() 1947 FromType = ToType; in IsStandardConversion() 1951 FromType = ToType; in IsStandardConversion() 2291 if (ToType->isObjCIdType() || ToType->isObjCQualifiedIdType()) in BuildSimilarlyQualifiedPointerType() 2885 ToType = ToType->getPointeeType(); in HandleFunctionTypeMismatch() 2889 ToType = ToType.getNonReferenceType(); in HandleFunctionTypeMismatch() 3284 ToType = Context.getCanonicalType(ToType); in IsQualificationConversion() 5172 if (ToType->isRecordType() && !ToType->isAggregateType()) { in TryListConversion() [all …]
|
| H A D | SemaExprCXX.cpp | 4209 assert(!ToType->isReferenceType()); in PerformImplicitConversion() 4258 ToAtomicType = ToType; in PerformImplicitConversion() 4259 ToType = ToAtomic->getValueType(); in PerformImplicitConversion() 4334 if (ToType->isBooleanType()) { in PerformImplicitConversion() 4377 if (ToType->isRealFloatingType()) in PerformImplicitConversion() 4424 QualType NewToType = ToType; in PerformImplicitConversion() 4645 if (ToType->isReferenceType() && in PerformImplicitConversion() 4650 if (ToType->isPointerType() && in PerformImplicitConversion() 5980 ToType = To->getType(); in TryClassUnification() 6001 ToType = T; in TryClassUnification() [all …]
|
| H A D | SemaCast.cpp | 175 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, in CheckNoDeref() argument 179 if (const auto *DestType = dyn_cast<PointerType>(ToType)) { in CheckNoDeref() 1490 QualType ToType = R->getPointeeType(); in TryLValueToRValueCast() local 1493 ToType = ToType.getUnqualifiedType(); in TryLValueToRValueCast() 1498 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast()
|
| H A D | SemaExceptionSpec.cpp | 920 bool Sema::CheckExceptionSpecCompatibility(Expr *From, QualType ToType) { in CheckExceptionSpecCompatibility() argument 923 const FunctionProtoType *ToFunc = GetUnderlyingFunction(ToType); in CheckExceptionSpecCompatibility()
|
| H A D | SemaTemplateDeduction.cpp | 4293 QualType ToType, in DeduceTemplateArguments() argument 4306 QualType A = Context.getCanonicalType(ToType); in DeduceTemplateArguments() 4378 if (ToType->isReferenceType()) in DeduceTemplateArguments()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTDiagnostic.cpp | 406 QualType ToType = in FormatASTNodeDiagnosticArgument() local 824 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff() 1147 QualType ToType, in OnlyPerformTypeDiff() argument 1150 if (FromType.isNull() || ToType.isNull()) in OnlyPerformTypeDiff() 1153 if (Context.hasSameType(FromType, ToType)) in OnlyPerformTypeDiff() 1171 QualType ToType = GetType(ToIter); in DiffTypes() local 1186 ToQual = ToType.getQualifiers(); in DiffTypes() 1507 QualType FromType, ToType; in TreeToString() local 1508 Tree.GetTypeDiff(FromType, ToType); in TreeToString() 1673 if (!FromType.isNull() && !ToType.isNull() && in PrintTypeNames() [all …]
|
| H A D | ASTImporter.cpp | 2303 ToD->setBinding(ToType, ToBinding); in VisitBindingDecl() 3760 auto ToType = importChecked(Err, D->getType()); in VisitFieldDecl() local 4024 auto ToType = importChecked(Err, D->getType()); in VisitObjCIvarDecl() local 4035 ToType, ToTypeSourceInfo, in VisitObjCIvarDecl() 5358 ToLParenLoc, ToType, in VisitObjCPropertyDecl() 7118 ToAmpAmpLoc, ToLabelLoc, ToLabel, ToType); in VisitAddrLabelExpr() 7279 ToDimensionExpression, ToEndLoc, ToType); in VisitArrayTypeTraitExpr() 7293 ToEndLoc, ToType); in VisitExpressionTraitExpr() 7568 ToType, ToTypeSourceInfo, ToRParenLoc); in VisitCXXScalarValueInitExpr() 8144 To->setType(ToType); in VisitInitListExpr() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | easily-swappable-parameters-implicits.cpp | 314 struct ToType; 316 operator ToType() const; 324 struct ToType { struct 328 void f(FromType F, ToType T) { // NO-WARN: The path takes two steps. in f() 333 ToType T2 = MS1; in f()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | propagate_value_category.hpp | 118 using ToType = Apply<UnCVRef<Tp>>; in cast() typedef 119 return static_cast<ToType>(t); in cast() 125 using ToType = Apply<UnCVRef<Tp>>; in cast() typedef 126 return static_cast<ToType>(std::move(t)); in cast()
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.h | 114 const TypeDescriptor &ToType; member 120 const TypeDescriptor &ToType; member 148 const TypeDescriptor &ToType; member
|
| H A D | ubsan_handlers.cpp | 485 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local 493 ToType = &Data->ToType; in handleFloatCastOverflow() 501 ToType = &Data->ToType; in handleFloatCastOverflow() 508 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow() 561 const TypeDescriptor &DstTy = Data->ToType; in handleImplicitConversion()
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | Core.h | 2201 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2202 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2203 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2205 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2206 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2207 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2208 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); 2215 LLVMTypeRef ToType); 2217 LLVMTypeRef ToType); 2219 LLVMTypeRef ToType); [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Core.cpp | 1693 unwrap(ToType))); in LLVMConstTrunc() 1698 unwrap(ToType))); in LLVMConstSExt() 1703 unwrap(ToType))); in LLVMConstZExt() 1708 unwrap(ToType))); in LLVMConstFPTrunc() 1718 unwrap(ToType))); in LLVMConstUIToFP() 1723 unwrap(ToType))); in LLVMConstSIToFP() 1728 unwrap(ToType))); in LLVMConstFPToUI() 1733 unwrap(ToType))); in LLVMConstFPToSI() 1748 unwrap(ToType))); in LLVMConstBitCast() 1776 LLVMTypeRef ToType) { in LLVMConstPointerCast() argument [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Overload.h | 655 Expr *FromExpr, QualType ToType) { in setBad() argument 657 Bad.init(Failure, FromExpr, ToType); in setBad() 662 QualType FromType, QualType ToType) { in setBad() argument 664 Bad.init(Failure, FromType, ToType); in setBad()
|
| H A D | Sema.h | 3649 TryImplicitConversion(Expr *From, QualType ToType, 3658 bool IsComplexPromotion(QualType FromType, QualType ToType); 3662 bool isObjCPointerConversion(QualType FromType, QualType ToType, 3666 bool IsBlockPointerConversion(QualType FromType, QualType ToType, 3677 bool CheckPointerConversion(Expr *From, QualType ToType, 3685 bool CheckMemberPointerConversion(Expr *From, QualType ToType, 3691 bool IsFunctionConversion(QualType FromType, QualType ToType, 3907 CXXRecordDecl *ActingContext, Expr *From, QualType ToType, 3912 CXXRecordDecl *ActingContext, Expr *From, QualType ToType, 8807 QualType ToType, [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | RangeSetTest.cpp | 662 using ToType = To; typedef 739 using T = typename TypeParam::ToType; // To in TYPED_TEST() 781 using T = typename TypeParam::ToType; // To in TYPED_TEST() 823 using T = typename TypeParam::ToType; // To in TYPED_TEST() 910 using T = typename TypeParam::ToType; // To in TYPED_TEST() 955 using T = typename TypeParam::ToType; // To in TYPED_TEST() 1020 using T = typename TypeParam::ToType; // To in TYPED_TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | EasilySwappableParametersCheck.cpp | 1113 QualType ToType) { in addConversion() argument 1117 Check, FromType, ToType, ConvFun->getASTContext(), in addConversion() 1196 QualType ToType) { in tryConversionOperators() argument 1203 ToType.dump(llvm::dbgs(), RD->getASTContext()); in tryConversionOperators() 1217 ConversionSet.addConversion(Con, Con->getConversionType(), ToType); in tryConversionOperators() 1224 ConversionSequence Result{RecordType, ToType}; in tryConversionOperators()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 597 APSIntType ToType(getContext().getTypeSize(castTy), in evalIntegralCast() local 599 llvm::APSInt ToTypeMax = ToType.getMaxValue(); in evalIntegralCast()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Diagnostic.cpp | 1074 TDT.ToType = getRawArg(ArgNo2); in FormatDiagnostic() 1132 TDT.ToType)); in FormatDiagnostic()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelDAGToDAG.cpp | 1899 unsigned ToType; in tryStoreVector() local 1901 ToType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryStoreVector() 1904 ToType = NVPTX::PTXLdStInstCode::Unsigned; in tryStoreVector() 1935 ToType = NVPTX::PTXLdStInstCode::Untyped; in tryStoreVector() 1942 StOps.push_back(getI32Imm(ToType, DL)); in tryStoreVector()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Diagnostic.h | 1823 intptr_t ToType; member
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 210 using ToType = typename std::remove_cv<typename std::remove_pointer< in MatchAndExplain() local 218 std::is_same<FromType, ToType>::value || in MatchAndExplain() 219 !std::is_base_of<FromType, ToType>::value, in MatchAndExplain()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 758 static RTLIB::Libcall getConvRTLibDesc(unsigned Opcode, Type *ToType, in getConvRTLibDesc() argument 760 auto ToMVT = MVT::getVT(ToType); in getConvRTLibDesc() 781 conversionLibcall(MachineInstr &MI, MachineIRBuilder &MIRBuilder, Type *ToType, in conversionLibcall() argument 783 RTLIB::Libcall Libcall = getConvRTLibDesc(MI.getOpcode(), ToType, FromType); in conversionLibcall() 785 {MI.getOperand(0).getReg(), ToType, 0}, in conversionLibcall()
|