Home
last modified time | relevance | path

Searched refs:ToInt (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/alg.req.mergeable/
H A Dmergeable.compile.pass.cpp97 using ToInt = int(*)(int); typedef
100 static_assert( std::mergeable<Input, Input, Output, GoodComp, ToInt, ToInt>);
101 static_assert(!std::mergeable<Input, Input, Output, GoodComp, ToPtr, ToInt>);
102 static_assert(!std::mergeable<Input, Input, Output, GoodComp, ToInt, ToPtr>);
103 static_assert(!std::mergeable<Input, Input, Output, bool(*)(int*, int), ToPtr, ToInt>);
104 static_assert(!std::mergeable<Input, Input, Output, bool(*)(int, int*), ToInt, ToPtr>);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DStrToNumCheck.cpp40 ToInt, enumerator
53 .Cases("atoi", "atol", ConversionKind::ToInt) in classifyConversionFunc()
88 CK = ConversionKind::ToInt; in classifyFormatString()
137 case ConversionKind::ToInt: in classifyConversionType()
157 case ConversionKind::ToInt: in classifyReplacement()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTDiagnostic.cpp691 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
720 Expr *FromExpr, const llvm::APSInt &ToInt, bool IsValidToInt, in SetFromDeclarationAndToIntegerDiff() argument
728 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
839 void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetIntegerDiff() argument
845 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
871 Expr *&FromExpr, llvm::APSInt &ToInt, bool &IsValidToInt, in GetFromDeclarationAndToIntegerDiff() argument
879 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
1283 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1325 FromInt == ToInt); in DiffNonTypes()
1528 llvm::APSInt FromInt, ToInt; in TreeToString() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-implicits.cpp142 struct ToInt { struct
146 void oneWayConversion2(ToInt TI, int I) {} // NO-WARN: One-way. in oneWayConversion2()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp728 APSInt ToInt = R.To(); in truncateTo() local
731 uint64_t CurrentRangeSize = (ToInt - FromInt).getZExtValue(); in truncateTo()
743 Ty.apply(ToInt); in truncateTo()
745 const APSInt &PersistentTo = ValueFactory.getValue(ToInt); in truncateTo()
746 if (FromInt > ToInt) { in truncateTo()
787 APSInt ToInt = R.To(); in convertTo() local
790 Ty.apply(ToInt); in convertTo()
791 return {VF.getValue(FromInt), VF.getValue(ToInt)}; in convertTo()
838 llvm::APSInt ToInt = R.To(); in promoteTo() local
841 Ty.apply(ToInt); in promoteTo()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtype-traits.cpp2009 struct ToInt { operator int(); }; struct
2038 { int arr[T(__is_convertible_to(ToInt, int))]; } in is_convertible_to()
2039 { int arr[T(__is_convertible_to(ToInt, const int&))]; } in is_convertible_to()
2040 { int arr[T(__is_convertible_to(ToInt, long))]; } in is_convertible_to()
2041 { int arr[F(__is_convertible_to(ToInt, int&))]; } in is_convertible_to()
2042 { int arr[F(__is_convertible_to(ToInt, FromInt))]; } in is_convertible_to()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1596 ISD::NodeType ToInt = Sign ? ISD::FP_TO_SINT : ISD::FP_TO_UINT; in LowerDIVREM24() local
1645 SDValue iq = DAG.getNode(ToInt, DL, IntVT, fq); in LowerDIVREM24()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMInstrMVE.td4049 defvar ToInt = !eq(Src.SuffixLetter,"f");
4052 ToInt, Unsigned>;