Home
last modified time | relevance | path

Searched refs:FromType (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp257 const BuiltinType &FromType, in isWideEnoughToHold() argument
304 const ASTContext &Context, const BuiltinType &FromType, in isWarningInhibitedByEquivalentSize() argument
309 uint64_t FromTypeSize = Context.getTypeSize(&FromType); in isWarningInhibitedByEquivalentSize()
388 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralCast() local
393 uint64_t FromTypeSize = Context.getTypeSize(FromType); in handleIntegralCast()
407 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralCast()
434 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralToFloating() local
437 if (!isWideEnoughToHold(Context, *FromType, *ToType)) in handleIntegralToFloating()
456 const BuiltinType *FromType = getBuiltinType(Rhs); in handleFloatingToIntegral() local
499 const BuiltinType *FromType = getBuiltinType(Rhs); in handleFloatingCast() local
[all …]
H A DNarrowingConversionsCheck.h97 const BuiltinType &FromType,
/llvm-project-15.0.7/clang/lib/AST/
H A DASTDiagnostic.cpp404 QualType FromType = in FormatASTNodeDiagnosticArgument() local
1150 if (FromType.isNull() || ToType.isNull()) in OnlyPerformTypeDiff()
1153 if (Context.hasSameType(FromType, ToType)) in OnlyPerformTypeDiff()
1170 QualType FromType = GetType(FromIter); in DiffTypes() local
1185 Qualifiers FromQual = FromType.getQualifiers(), in DiffTypes()
1507 QualType FromType, ToType; in TreeToString() local
1508 Tree.GetTypeDiff(FromType, ToType); in TreeToString()
1665 assert((!FromType.isNull() || !ToType.isNull()) && in PrintTypeNames()
1669 OS << FromType.getAsString(Policy); in PrintTypeNames()
1673 if (!FromType.isNull() && !ToType.isNull() && in PrintTypeNames()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp256 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
1756 FromType = S.Context.getPointerType(FromType); in IsStandardConversion()
1767 !FromType->isFunctionType() && !FromType->isArrayType() && in IsStandardConversion()
1781 FromType = FromType.getUnqualifiedType(); in IsStandardConversion()
1789 FromType = S.Context.getArrayDecayedType(FromType); in IsStandardConversion()
1817 FromType = S.Context.getPointerType(FromType); in IsStandardConversion()
1914 FromType = FromType.getUnqualifiedType(); in IsStandardConversion()
1961 if (S.IsFunctionConversion(FromType, ToType, FromType)) { in IsStandardConversion()
2883 FromType = FromType->getPointeeType(); in HandleFunctionTypeMismatch()
2888 FromType = FromType.getNonReferenceType(); in HandleFunctionTypeMismatch()
[all …]
H A DSemaExprCXX.cpp4205 QualType FromType = From->getType(); in PerformImplicitConversion() local
4232 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
4251 FromType = From->getType(); in PerformImplicitConversion()
4262 QualType InitialFromType = FromType; in PerformImplicitConversion()
4266 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion()
4267 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion()
4281 FromType = From->getType(); in PerformImplicitConversion()
4286 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
4293 FromType = Context.getPointerType(FromType); in PerformImplicitConversion()
4335 assert(FromType->castAs<EnumType>()->getDecl()->isFixed() && in PerformImplicitConversion()
[all …]
H A DSemaExprObjC.cpp4650 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() local
4658 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast()
4670 << FromType in BuildObjCBridgedCast()
4678 << FromType << br in BuildObjCBridgedCast()
4692 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast()
4704 SubExpr = ImplicitCastExpr::Create(Context, FromType, CK_ARCProduceObject, in BuildObjCBridgedCast()
4712 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast()
4713 << FromType in BuildObjCBridgedCast()
4732 << FromType << T << Kind in BuildObjCBridgedCast()
H A DSemaCast.cpp175 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, in CheckNoDeref() argument
177 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref()
1489 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() local
1492 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast()
1498 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast()
H A DSemaExpr.cpp3011 QualType FromType = From->getType(); in PerformObjectMemberConversion() local
3015 auto FromPtrType = FromType->getAs<PointerType>(); in PerformObjectMemberConversion()
3019 : FromType.getAddressSpace()); in PerformObjectMemberConversion()
3027 FromRecordType = FromType; in PerformObjectMemberConversion()
3036 if (FromType->getAs<PointerType>()) { in PerformObjectMemberConversion()
3037 FromRecordType = FromType->getPointeeType(); in PerformObjectMemberConversion()
3040 FromRecordType = FromType; in PerformObjectMemberConversion()
3112 FromType = QType; in PerformObjectMemberConversion()
12182 QualType FromType, in checkThreeWayNarrowingConversion() argument
12187 SCS.setToType(0, FromType); in checkThreeWayNarrowingConversion()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-implicits.cpp318 struct FromType { struct
322 operator FromType() const;
328 void f(FromType F, ToType T) { // NO-WARN: The path takes two steps. in f()
330 FromType F2 = MS2; in f()
/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_handlers.h113 const TypeDescriptor &FromType; member
119 const TypeDescriptor &FromType; member
147 const TypeDescriptor &FromType; member
H A Dubsan_handlers.cpp485 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() local
492 FromType = &Data->FromType; in handleFloatCastOverflow()
500 FromType = &Data->FromType; in handleFloatCastOverflow()
508 << Value(*FromType, From) << *FromType << *ToType; in handleFloatCastOverflow()
560 const TypeDescriptor &SrcTy = Data->FromType; in handleImplicitConversion()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterFixtures.cpp100 QualType FromType) { in import() argument
102 if (auto ImportedOrErr = Importer->Import(FromType)) in import()
213 QualType ASTImporterTestBase::ImportType(QualType FromType, Decl *TUDecl, in ImportType() argument
218 return FromTU->import(SharedStatePtr, ToAST.get(), FromType); in ImportType()
H A DASTImporterFixtures.h134 ASTUnit *ToAST, QualType FromType);
192 QualType ImportType(QualType FromType, Decl *TUDecl, TestLanguage ToLang);
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DRangeSetTest.cpp661 using FromType = From; typedef
669 : public RangeSetTest<typename Type::FromType> {};
672 : public RangeSetTest<typename Type::FromType> {};
675 : public RangeSetTest<typename Type::FromType> {};
678 : public RangeSetTest<typename Type::FromType> {};
738 using F = typename TypeParam::FromType; // From in TYPED_TEST()
780 using F = typename TypeParam::FromType; // From in TYPED_TEST()
822 using F = typename TypeParam::FromType; // From in TYPED_TEST()
909 using F = typename TypeParam::FromType; // From in TYPED_TEST()
954 using F = typename TypeParam::FromType; // From in TYPED_TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTX.h115 enum FromType { enum
H A DNVPTXISelDAGToDAG.cpp1030 unsigned int FromType; in tryLoadVector() local
1035 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoadVector()
1037 FromType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryLoadVector()
1040 FromType = NVPTX::PTXLdStInstCode::Unsigned; in tryLoadVector()
1063 FromType = NVPTX::PTXLdStInstCode::Untyped; in tryLoadVector()
1089 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1116 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1165 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
1214 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DEasilySwappableParametersCheck.cpp1112 void addConversion(const CXXMethodDecl *ConvFun, QualType FromType, in addConversion() argument
1117 Check, FromType, ToType, ConvFun->getASTContext(), in addConversion()
1246 tryConvertingConstructors(const TheCheck &Check, QualType FromType, in tryConvertingConstructors() argument
1254 FromType.dump(llvm::dbgs(), RD->getASTContext()); in tryConvertingConstructors()
1268 ConversionSet.addConversion(Con, FromType, Con->getParamDecl(0)->getType()); in tryConvertingConstructors()
1275 ConversionSequence Result{FromType, RecordType}; in tryConvertingConstructors()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DOverload.h662 QualType FromType, QualType ToType) { in setBad() argument
664 Bad.init(Failure, FromType, ToType); in setBad()
H A DSema.h3656 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
3657 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
3658 bool IsComplexPromotion(QualType FromType, QualType ToType);
3659 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
3662 bool isObjCPointerConversion(QualType FromType, QualType ToType,
3664 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
3666 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
3673 QualType FromType, QualType ToType);
3682 bool IsMemberPointerConversion(Expr *From, QualType FromType, QualType ToType,
3689 bool IsQualificationConversion(QualType FromType, QualType ToType,
[all …]
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dtools.cpp1036 using FromType = typename std::decay_t<decltype(w)>::Result; in DataConstantConversionHelper() typedef
1037 static constexpr int kind{FromType::kind}; in DataConstantConversionHelper()
1039 if (const auto *fromConst{UnwrapExpr<Constant<FromType>>(w)}) { in DataConstantConversionHelper()
1040 using FromWordType = typename FromType::Scalar; in DataConstantConversionHelper()
/llvm-project-15.0.7/clang/lib/Basic/
H A DDiagnostic.cpp1073 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic()
1118 TDT.FromType)); in FormatDiagnostic()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp1934 llvm::Type *FromType = FromValue->getType(); in salvageDebugInfoImpl() local
1935 if (FromType->isPointerTy()) in salvageDebugInfoImpl()
1936 FromType = DL.getIntPtrType(FromType); in salvageDebugInfoImpl()
1938 unsigned FromTypeBitSize = FromType->getScalarSizeInBits(); in salvageDebugInfoImpl()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnostic.h1822 intptr_t FromType; member
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-matchers.h208 using FromType = 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/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1608 EVT FromType = V.getOperand(0).getValueType(); in getValueBits() local
1611 if (FromType != MVT::i64 || ToType != MVT::i32) in getValueBits()
1613 const unsigned NumAllBits = FromType.getSizeInBits(); in getValueBits()
1642 EVT FromType = cast<VTSDNode>(V.getOperand(1))->getVT(); in getValueBits() local
1643 const unsigned NumValidBits = FromType.getSizeInBits(); in getValueBits()

12