/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
H A D | NarrowingConversionsCheck.cpp |
|
H A D | NarrowingConversionsCheck.h |
|
/llvm-project/clang/lib/AST/ |
H A D | ASTDiagnostic.cpp | 349 static bool FormatTemplateTypeDiff(ASTContext &Context, QualType FromType, in ConvertTypeToDiagnosticString() 402 QualType FromType = in FormatASTNodeDiagnosticArgument() 403 QualType::getFromOpaquePtr(reinterpret_cast<void*>(TDT.FromType)); in FormatASTNodeDiagnosticArgument() 407 if (FormatTemplateTypeDiff(Context, FromType, ToType, TDT.PrintTree, in FormatASTNodeDiagnosticArgument() 422 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; in FormatASTNodeDiagnosticArgument() 544 /// ToTemplateType - The type that FromType is compared to. Only in tree 654 void SetTypeDiff(QualType FromType, QualType ToType, bool FromDefault, in SetTemplateDiff() 658 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff() 819 void GetTypeDiff(QualType &FromType, QualType &ToType) { in GetTemplateDiff() 821 FromType argument 404 QualType FromType = FormatASTNodeDiagnosticArgument() local 656 SetTypeDiff(QualType FromType,QualType ToType,bool FromDefault,bool ToDefault) SetTypeDiff() argument 1146 OnlyPerformTypeDiff(ASTContext & Context,QualType FromType,QualType ToType,const TemplateSpecializationType * & FromArgTST,const TemplateSpecializationType * & ToArgTST) OnlyPerformTypeDiff() argument 1170 QualType FromType = GetType(FromIter); DiffTypes() local 1529 QualType FromType, ToType; TreeToString() local 1685 PrintTypeNames(QualType FromType,QualType ToType,bool FromDefault,bool ToDefault,bool Same) PrintTypeNames() argument 2096 TemplateDiff(raw_ostream & OS,ASTContext & Context,QualType FromType,QualType ToType,bool PrintTree,bool PrintFromType,bool ElideType,bool ShowColor) TemplateDiff() argument 2160 FormatTemplateTypeDiff(ASTContext & Context,QualType FromType,QualType ToType,bool PrintTree,bool PrintFromType,bool ElideType,bool ShowColors,raw_ostream & OS) FormatTemplateTypeDiff() argument [all...] |
/llvm-project/clang/lib/Sema/ |
H A D | SemaOverload.cpp | 273 // Note that FromType has not necessarily been transformed by the 275 // check for their presence as well as checking whether FromType is 295 QualType FromType = getFromType(); 298 // Note that FromType has not necessarily been transformed by the in IgnoreNarrowingConversion() 302 FromType = Context.getArrayDecayedType(FromType); in IgnoreNarrowingConversion() 304 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in IgnoreNarrowingConversion() 364 QualType FromType = getToType(0); in getNarrowingKind() 376 if (FromType->isRealFloatingType()) in getNarrowingKind() 378 if (FromType in getNarrowingKind() 278 QualType FromType = getFromType(); isPointerConversionToVoidPointer() local 347 QualType FromType = getToType(0); getNarrowingKind() local 1694 QualType FromType = From->getType(); TryImplicitConversion() local 1758 IsFunctionConversion(QualType FromType,QualType ToType,QualType & ResultTy) IsFunctionConversion() argument 1876 IsFloatingPointConversion(Sema & S,QualType FromType,QualType ToType) IsFloatingPointConversion() argument 1903 IsVectorElementConversion(Sema & S,QualType FromType,QualType ToType,ImplicitConversionKind & ICK,Expr * From) IsVectorElementConversion() argument 1950 IsVectorConversion(Sema & S,QualType FromType,QualType ToType,ImplicitConversionKind & ICK,ImplicitConversionKind & ElConv,Expr * From,bool InOverloadResolution,bool CStyle) IsVectorConversion() argument 2056 QualType FromType = From->getType(); IsStandardConversion() local 2416 IsIntegralPromotion(Expr * From,QualType FromType,QualType ToType) IsIntegralPromotion() argument 2581 IsFloatingPointPromotion(QualType FromType,QualType ToType) IsFloatingPointPromotion() argument 2618 IsComplexPromotion(QualType FromType,QualType ToType) IsComplexPromotion() argument 2696 IsPointerConversion(Expr * From,QualType FromType,QualType ToType,bool InOverloadResolution,QualType & ConvertedType,bool & IncompatibleObjC) IsPointerConversion() argument 2844 isObjCPointerConversion(QualType FromType,QualType ToType,QualType & ConvertedType,bool & IncompatibleObjC) isObjCPointerConversion() argument 3015 IsBlockPointerConversion(QualType FromType,QualType ToType,QualType & ConvertedType) IsBlockPointerConversion() argument 3120 tryGetFunctionProtoType(QualType FromType) tryGetFunctionProtoType() argument 3131 HandleFunctionTypeMismatch(PartialDiagnostic & PDiag,QualType FromType,QualType ToType) HandleFunctionTypeMismatch() argument 3286 QualType FromType = From->getType(); CheckPointerConversion() local 3362 IsMemberPointerConversion(Expr * From,QualType FromType,QualType ToType,bool InOverloadResolution,QualType & ConvertedType) IsMemberPointerConversion() argument 3402 QualType FromType = From->getType(); CheckMemberPointerConversion() local 3476 isQualificationConversionStep(QualType FromType,QualType ToType,bool CStyle,bool IsTopLevel,bool & PreviousToQualsIncludeConst,bool & ObjCLifetimeConversion) isQualificationConversionStep() argument 3551 IsQualificationConversion(QualType FromType,QualType ToType,bool CStyle,bool & ObjCLifetimeConversion) IsQualificationConversion() argument 4245 QualType FromType = SCS.getFromType(); getFixedEnumPromtion() local 5663 TryObjectArgumentInitialization(Sema & S,SourceLocation Loc,QualType FromType,Expr::Classification FromClassification,CXXMethodDecl * Method,const CXXRecordDecl * ActingContext,bool InOverloadResolution=false,QualType ExplicitParameterType=QualType (),bool SuppressUserConversion=false) TryObjectArgumentInitialization() argument [all...] |
H A D | SemaExprCXX.cpp | 4349 QualType FromType = From->getType(); in PerformImplicitConversion() 4376 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion() 4397 FromType = From->getType(); in PerformImplicitConversion() 4408 QualType InitialFromType = FromType; in PerformImplicitConversion() 4412 if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) { in PerformImplicitConversion() 4413 FromType = FromAtomic->getValueType().getUnqualifiedType(); in PerformImplicitConversion() 4414 From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic, in PerformImplicitConversion() 4427 FromType = From->getType(); in PerformImplicitConversion() 4432 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion() 4309 QualType FromType = From->getType(); PerformImplicitConversion() local [all...] |
H A D | SemaCast.cpp | 181 void CheckNoDeref(Sema &S, const QualType FromType, const QualType ToType, 183 if (const auto *PtrType = dyn_cast<PointerType>(FromType)) { in CheckNoDeref() 1550 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() 1553 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast() 1559 SrcExpr->getBeginLoc(), ToType, FromType, &RefConv); in TryLValueToRValueCast() 182 CheckNoDeref(Sema & S,const QualType FromType,const QualType ToType,SourceLocation OpLoc) CheckNoDeref() argument 1544 QualType FromType = SrcExpr->getType(); TryLValueToRValueCast() local
|
H A D | SemaExprObjC.cpp | 4651 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() 4659 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast() 4671 << FromType in BuildObjCBridgedCast() 4679 << FromType << br in BuildObjCBridgedCast() 4693 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast() 4705 SubExpr = ImplicitCastExpr::Create(Context, FromType, CK_ARCProduceObject, in BuildObjCBridgedCast() 4713 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast() 4714 << FromType in BuildObjCBridgedCast() 4733 << FromType << T << Kind in BuildObjCBridgedCast() 4662 QualType FromType = SubExpr->getType(); BuildObjCBridgedCast() local
|
H A D | SemaObjC.cpp | 1312 /// \param FromType The type we're converting form. 1318 bool SemaObjC::isObjCWritebackConversion(QualType FromType, QualType ToType, in isObjCWritebackConversion() 1322 Context.hasSameUnqualifiedType(FromType, ToType)) in isObjCWritebackConversion() 1340 if (const PointerType *FromPointer = FromType->getAs<PointerType>()) in isObjCWritebackConversion() 1317 isObjCWritebackConversion(QualType FromType,QualType ToType,QualType & ConvertedType) isObjCWritebackConversion() argument
|
/llvm-project/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/compiler-rt/lib/ubsan/ |
H A D | ubsan_handlers.h | 116 const TypeDescriptor &FromType; 122 const TypeDescriptor &FromType; 150 const TypeDescriptor &FromType; 113 const TypeDescriptor &FromType; global() member 119 const TypeDescriptor &FromType; global() member 147 const TypeDescriptor &FromType; global() member
|
H A D | ubsan_handlers.cpp | 507 const TypeDescriptor *FromType, *ToType; in handleFloatCastOverflow() 514 FromType = &Data->FromType; in __ubsan_handle_float_cast_overflow() 522 FromType = &Data->FromType; in handleLoadInvalidValue() 530 << Value(*FromType, From) << *FromType << *ToType; in handleLoadInvalidValue() 580 const TypeDescriptor &SrcTy = Data->FromType; in handleImplicitConversion() 485 const TypeDescriptor *FromType, *ToType; handleFloatCastOverflow() local
|
/llvm-project/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/clang/unittests/StaticAnalyzer/ |
H A D | RangeSetTest.cpp | 661 using FromType = From; typedef 666 class RangeSetCastToNoopTest : public RangeSetTest<typename Type::FromType> {}; 669 : public RangeSetTest<typename Type::FromType> {}; 672 : public RangeSetTest<typename Type::FromType> {}; 675 : public RangeSetTest<typename Type::FromType> {}; 678 : public RangeSetTest<typename Type::FromType> {}; 681 : 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; // Fro in TYPED_TEST() [all...] |
/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTX.h | 155 enum FromType { 118 enum FromType { global() enum
|
H A D | NVPTXISelDAGToDAG.cpp | 909 unsigned int FromType; in tryLoad() 921 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoad() 923 FromType = getLdStRegType(ScalarVT); in tryLoad() 934 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoad() 1034 unsigned int FromType; in tryLoad() 1039 FromType = NVPTX::PTXLdStInstCode::Signed; in tryLoad() 1041 FromType = getLdStRegType(ScalarVT); in tryLoad() 1060 FromType = NVPTX::PTXLdStInstCode::Untyped; in tryLoadVector() 1071 getI32Imm(VecType, DL), getI32Imm(FromType, DL), in tryLoadVector() 1088 unsigned int FromType; tryLoadVector() local
|
/llvm-project/clang/test/Analysis/Checkers/WebKit/ |
H A D | uncounted-obj-arg.cpp | 66 template<typename ToType, typename FromType> 67 ToType bitwise_cast(FromType from);
|
/llvm-project/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/clang/include/clang/Sema/ |
H A D | Overload.h | 363 /// FromType - The type that this conversion is converting 723 QualType FromType, QualType ToType) { 725 Bad.init(Failure, FromType, ToType); in hasInitializerListContainerType() 699 setBad(BadConversionSequence::FailureKind Failure,QualType FromType,QualType ToType) setBad() argument
|
H A D | Sema.h | 7229 bool IsInvalidSMECallConversion(QualType FromType, QualType ToType); 9872 /// expression From (whose potentially-adjusted type is FromType) to 9875 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType); 9878 /// FromType to ToType is a floating point promotion (C++ 4.6). If so, 9880 bool IsFloatingPointPromotion(QualType FromType, QualType ToType); 9887 bool IsComplexPromotion(QualType FromType, QualType ToType); 9890 /// expression From, which has the (possibly adjusted) type FromType, 9905 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType, 9912 bool isObjCPointerConversion(QualType FromType, QualType ToType, 9914 bool IsBlockPointerConversion(QualType FromType, QualTyp [all...] |
H A D | SemaObjC.h | 146 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1170 QualType FromType = E->getType(); in VisitCastExpr() 1172 if (FromType->isIntegerType()) in VisitCastExpr() 1173 if (llvm::Constant *C = Visit(E, FromType)) in VisitCastExpr() 1175 unsigned SrcWidth = CGM.getContext().getIntWidth(FromType); in VisitCastExpr() 1179 llvm::APInt A = FromType->isSignedIntegerType() in VisitCastExpr() 1072 QualType FromType = E->getType(); ProduceIntToIntCast() local
|
/llvm-project/flang/lib/Evaluate/ |
H A D | tools.cpp | 1337 using FromType = ResultType<decltype(w)>; in AreEquivalentInInterface() 1338 static constexpr int kind{FromType::kind}; in AreEquivalentInInterface() 1340 if (const auto *fromConst{UnwrapExpr<Constant<FromType>>(w)}) { in AreEquivalentInInterface() 1341 using FromWordType = typename FromType::Scalar; in AreEquivalentInInterface() 1189 using FromType = ResultType<decltype(w)>; DataConstantConversionHelper() typedef
|
/llvm-project/clang/lib/Basic/ |
H A D | Diagnostic.cpp | 1259 TDT.FromType = getRawArg(ArgNo); 1304 TDT.FromType));
|
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 2639 llvm::Type *FromType = FromValue->getType(); in rewriteDebugUsers() 2640 if (FromType->isPointerTy()) in rewriteDebugUsers() 2641 FromType = DL.getIntPtrType(FromType); in rewriteDebugUsers() 2643 unsigned FromTypeBitSize = FromType->getScalarSizeInBits(); in rewriteDebugUsers() 2567 llvm::Type *FromType = FromValue->getType(); salvageDebugInfoImpl() local
|