| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.cpp | 257 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 D | NarrowingConversionsCheck.h | 97 const BuiltinType &FromType,
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTDiagnostic.cpp | 404 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 D | SemaOverload.cpp | 256 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 D | SemaExprCXX.cpp | 4205 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 D | SemaExprObjC.cpp | 4650 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 D | SemaCast.cpp | 175 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 D | SemaExpr.cpp | 3011 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 D | easily-swappable-parameters-implicits.cpp | 318 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 D | ubsan_handlers.h | 113 const TypeDescriptor &FromType; member 119 const TypeDescriptor &FromType; member 147 const TypeDescriptor &FromType; member
|
| H A D | ubsan_handlers.cpp | 485 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 D | ASTImporterFixtures.cpp | 100 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 D | ASTImporterFixtures.h | 134 ASTUnit *ToAST, QualType FromType); 192 QualType ImportType(QualType FromType, Decl *TUDecl, TestLanguage ToLang);
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | RangeSetTest.cpp | 661 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 D | NVPTX.h | 115 enum FromType { enum
|
| H A D | NVPTXISelDAGToDAG.cpp | 1030 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 D | EasilySwappableParametersCheck.cpp | 1112 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 D | Overload.h | 662 QualType FromType, QualType ToType) { in setBad() argument 664 Bad.init(Failure, FromType, ToType); in setBad()
|
| H A D | Sema.h | 3656 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 D | tools.cpp | 1036 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 D | Diagnostic.cpp | 1073 TDT.FromType = getRawArg(ArgNo); in FormatDiagnostic() 1118 TDT.FromType)); in FormatDiagnostic()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 1934 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 D | Diagnostic.h | 1822 intptr_t FromType; member
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 208 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 D | PPCISelDAGToDAG.cpp | 1608 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()
|