| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | AvoidCStyleCastsCheck.cpp | 41 static bool needsConstCast(QualType SourceType, QualType DestType) { in needsConstCast() argument 42 while ((SourceType->isPointerType() && DestType->isPointerType()) || in needsConstCast() 44 SourceType = SourceType->getPointeeType(); in needsConstCast() 116 const QualType SourceType = SourceTypeAsWritten.getCanonicalType(); in check() local 204 if (SourceType == DestType) { in check() 209 if (needsConstCast(SourceType, DestType) && in check() 210 pointedUnqualifiedTypesAreEqual(SourceType, DestType)) { in check() 220 QualType Source = SourceType.getNonReferenceType(); in check() 233 if ((SourceType->isBuiltinType() || SourceType->isEnumeralType()) && in check() 241 if (!needsConstCast(SourceType, DestType)) { in check() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeCstyleCastCheck.cpp | 20 static bool needsConstCast(QualType SourceType, QualType DestType) { in needsConstCast() argument 21 SourceType = SourceType.getNonReferenceType(); in needsConstCast() 23 while (SourceType->isPointerType() && DestType->isPointerType()) { in needsConstCast() 24 SourceType = SourceType->getPointeeType(); in needsConstCast() 26 if (SourceType.isConstQualified() && !DestType.isConstQualified()) in needsConstCast() 50 QualType SourceType = MatchedCast->getSubExpr()->getType(); in check() local 53 const auto *SourceDecl = SourceType->getPointeeCXXRecordDecl(); in check() 55 SourceDecl = SourceType->getAsCXXRecordDecl(); in check() 96 needsConstCast(SourceType, MatchedCast->getType())) { in check()
|
| H A D | ProTypeStaticCastDowncastCheck.cpp | 31 QualType SourceType = MatchedCast->getSubExpr()->getType(); in check() local 32 const auto *SourceDecl = SourceType->getPointeeCXXRecordDecl(); in check() 34 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UndefinedMemoryManipulationCheck.cpp | 59 QualType SourceType = Call->getArg(1)->IgnoreImplicit()->getType(); in check() local 60 if (!SourceType->getPointeeType().isNull()) in check() 61 SourceType = SourceType->getPointeeType(); in check() 64 << SourceType; in check()
|
| /llvm-project-15.0.7/openmp/runtime/src/ |
| H A D | kmp.h | 4424 static TargetType to(SourceType src) { 4425 KMP_ASSERT(src <= static_cast<SourceType>( 4427 KMP_ASSERT(src >= static_cast<SourceType>( 4437 static TargetType to(SourceType src) { 4445 static TargetType to(SourceType src) { 4453 static TargetType to(SourceType src) { 4455 KMP_ASSERT(src <= static_cast<SourceType>( 4470 static TargetType to(SourceType src) { 4471 KMP_ASSERT(src <= static_cast<SourceType>( 4479 static TargetType to(SourceType src) { [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Operator.cpp | 98 Type *SourceType, ArrayRef<const Value *> Index, const DataLayout &DL, in accumulateConstantOffset() argument 121 SourceType, Index.begin()); in accumulateConstantOffset()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 4266 SourceType = Fn->getType(); in ResolveOverloadedFunctionForReferenceBinding() 5762 QualType SourceType; in InitializeFrom() local 5976 (SourceType.isNull() || in InitializeFrom() 6014 if (!SourceType.isNull() && SourceType->isRecordType()) { in InitializeFrom() 6038 if (!SourceType.isNull() && SourceType->isNullPtrType() && in InitializeFrom() 7927 QualType SourceType = VD->getType(); in CheckMoveOnConstruction() local 7928 if (!SourceType->isRecordType()) in CheckMoveOnConstruction() 8824 if (!SourceType->isSamplerT() && !SourceType->isIntegerType()) { in Perform() 8826 << SourceType; in Perform() 8848 SourceType = Init->getType(); in Perform() [all …]
|
| H A D | SemaChecking.cpp | 13089 static void DiagnoseImpCast(Sema &S, Expr *E, QualType SourceType, QualType T, in DiagnoseImpCast() argument 13095 << SourceType << T << E->getSourceRange() in DiagnoseImpCast() 13100 << SourceType << T << E->getSourceRange() << SourceRange(CContext); in DiagnoseImpCast() 13998 QualType SourceType = E->getType(); in CheckImplicitConversion() local 14003 SourceType = S.Context.getTypeDeclType(Enum); in CheckImplicitConversion() 14004 Source = S.Context.getCanonicalType(SourceType).getTypePtr(); in CheckImplicitConversion() 14016 return DiagnoseImpCast(S, E, SourceType, T, CC, in CheckImplicitConversion()
|
| H A D | SemaDeclCXX.cpp | 12611 const Type *SourceType = UD->getQualifier()->getAsType(); in CheckInheritingConstructorUsingDecl() local 12612 assert(SourceType && in CheckInheritingConstructorUsingDecl() 12618 auto *Base = findDirectBaseWithType(TargetClass, QualType(SourceType, 0), in CheckInheritingConstructorUsingDecl() 12624 << QualType(SourceType, 0) << TargetClass; in CheckInheritingConstructorUsingDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Overload.h | 704 static ImplicitConversionSequence getNullptrToBool(QualType SourceType, in getNullptrToBool() argument 710 ICS.Standard.setFromType(SourceType); in getNullptrToBool() 713 ICS.Standard.setToType(0, SourceType); in getNullptrToBool()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Operator.h | 502 Type *SourceType, ArrayRef<const Value *> Index, const DataLayout &DL,
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangeConstraintManager.cpp | 1208 template <class SourceType> 1210 SourceType Origin) { in inferRange()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 20089 EVT SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() local 20102 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() 20110 if (SourceType == MVT::Other) in reduceBuildVecExtToExtBuildVec() 20112 SourceType = InTy; in reduceBuildVecExtToExtBuildVec() 20113 else if (InTy != SourceType) { in reduceBuildVecExtToExtBuildVec() 20115 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() 20127 bool ValidTypes = SourceType != MVT::Other && in reduceBuildVecExtToExtBuildVec() 20129 isPowerOf2_32(SourceType.getSizeInBits()); in reduceBuildVecExtToExtBuildVec() 20144 SDValue Filler = AllAnyExt ? DAG.getUNDEF(SourceType): in reduceBuildVecExtToExtBuildVec() 20145 DAG.getConstant(0, DL, SourceType); in reduceBuildVecExtToExtBuildVec() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGStmtOpenMP.cpp | 6172 QualType SourceType, QualType ResType, in convertToType() argument 6177 convertToScalarValue(CGF, Value, SourceType, ResType, Loc)); in convertToType() 6179 auto Res = convertToComplexValue(CGF, Value, SourceType, ResType, Loc); in convertToType()
|