Home
last modified time | relevance | path

Searched refs:SourceType (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/google/
DAvoidCStyleCastsCheck.cpp36 static bool needsConstCast(QualType SourceType, QualType DestType) { in needsConstCast() argument
37 while ((SourceType->isPointerType() && DestType->isPointerType()) || in needsConstCast()
38 (SourceType->isReferenceType() && DestType->isReferenceType())) { in needsConstCast()
39 SourceType = SourceType->getPointeeType(); in needsConstCast()
41 if (SourceType.isConstQualified() && !DestType.isConstQualified()) { in needsConstCast()
42 return (SourceType->isPointerType() == DestType->isPointerType()) && in needsConstCast()
43 (SourceType->isReferenceType() == DestType->isReferenceType()); in needsConstCast()
80 const QualType SourceType = SourceTypeAsWritten.getCanonicalType(); in check() local
173 if (SourceType == DestType) { in check()
178 if (needsConstCast(SourceType, DestType) && in check()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeCstyleCastCheck.cpp20 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()
DProTypeStaticCastDowncastCheck.cpp31 QualType SourceType = MatchedCast->getSubExpr()->getType(); in check() local
32 const auto *SourceDecl = SourceType->getPointeeCXXRecordDecl(); in check()
34 SourceDecl = SourceType->getAsCXXRecordDecl(); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUndefinedMemoryManipulationCheck.cpp59 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()
/external/angle/src/image_util/
Dcopyimage.inc25 template <typename SourceType>
28 SourceType::ReadDepthStencil(reinterpret_cast<DepthStencil *>(dest),
29 reinterpret_cast<const SourceType *>(source));
Dcopyimage.h27 template <typename SourceType>
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp1845 static bool isIntTruncCastValid(Ice::Type SourceType, Ice::Type TargetType) { in isIntTruncCastValid() argument
1846 return Ice::isIntegerType(SourceType) && Ice::isIntegerType(TargetType) && in isIntTruncCastValid()
1847 simplifyOutCommonVectorType(SourceType, TargetType) && in isIntTruncCastValid()
1848 getScalarIntBitWidth(SourceType) > getScalarIntBitWidth(TargetType); in isIntTruncCastValid()
1853 static bool isFloatTruncCastValid(Ice::Type SourceType, in isFloatTruncCastValid() argument
1855 return simplifyOutCommonVectorType(SourceType, TargetType) && in isFloatTruncCastValid()
1856 SourceType == Ice::IceType_f64 && TargetType == Ice::IceType_f32; in isFloatTruncCastValid()
1861 static bool isIntExtCastValid(Ice::Type SourceType, Ice::Type TargetType) { in isIntExtCastValid() argument
1862 return isIntTruncCastValid(TargetType, SourceType); in isIntExtCastValid()
1867 static bool isFloatExtCastValid(Ice::Type SourceType, Ice::Type TargetType) { in isFloatExtCastValid() argument
[all …]
/external/webrtc/rtc_base/experiments/
Dfield_trial_list.h124 template <typename ClassType, typename RetType, typename SourceType>
125 struct LambdaTypeTraits<RetType* (ClassType::*)(SourceType*)const> {
127 using src = SourceType;
/external/clang/lib/Sema/
DSemaInit.cpp3634 QualType &SourceType, in ResolveOverloadedFunctionForReferenceBinding() argument
3649 SourceType = Fn->getType(); in ResolveOverloadedFunctionForReferenceBinding()
3650 UnqualifiedSourceType = SourceType.getUnqualifiedType(); in ResolveOverloadedFunctionForReferenceBinding()
4571 QualType SourceType = Initializer->getType(); in TryUserDefinedConversion() local
4572 assert((DestType->isRecordType() || SourceType->isRecordType()) && in TryUserDefinedConversion()
4623 if (const RecordType *SourceRecordType = SourceType->getAs<RecordType>()) { in TryUserDefinedConversion()
4629 if (S.isCompleteType(DeclLoc, SourceType)) { in TryUserDefinedConversion()
4979 QualType SourceType; in InitializeFrom() local
4991 SourceType = Initializer->getType(); in InitializeFrom()
5131 (Context.hasSameUnqualifiedType(SourceType, DestType) || in InitializeFrom()
[all …]
DSemaChecking.cpp7823 void DiagnoseImpCast(Sema &S, Expr *E, QualType SourceType, QualType T, in DiagnoseImpCast() argument
7829 << SourceType << T << E->getSourceRange() in DiagnoseImpCast()
7834 << SourceType << T << E->getSourceRange() << SourceRange(CContext); in DiagnoseImpCast()
8394 QualType SourceType = E->getType(); in CheckImplicitConversion() local
8399 SourceType = S.Context.getTypeDeclType(Enum); in CheckImplicitConversion()
8400 Source = S.Context.getCanonicalType(SourceType).getTypePtr(); in CheckImplicitConversion()
8412 return DiagnoseImpCast(S, E, SourceType, T, CC, in CheckImplicitConversion()
DSemaDeclCXX.cpp8473 const Type *SourceType = UD->getQualifier()->getAsType(); in CheckInheritingConstructorUsingDecl() local
8474 assert(SourceType && in CheckInheritingConstructorUsingDecl()
8480 auto *Base = findDirectBaseWithType(TargetClass, QualType(SourceType, 0), in CheckInheritingConstructorUsingDecl()
8486 << QualType(SourceType, 0) << TargetClass; in CheckInheritingConstructorUsingDecl()
/external/llvm-project/clang/lib/Sema/
DSemaInit.cpp4179 QualType &SourceType, in ResolveOverloadedFunctionForReferenceBinding() argument
4194 SourceType = Fn->getType(); in ResolveOverloadedFunctionForReferenceBinding()
4195 UnqualifiedSourceType = SourceType.getUnqualifiedType(); in ResolveOverloadedFunctionForReferenceBinding()
5172 QualType SourceType = Initializer->getType(); in TryUserDefinedConversion() local
5173 assert((DestType->isRecordType() || SourceType->isRecordType()) && in TryUserDefinedConversion()
5219 if (const RecordType *SourceRecordType = SourceType->getAs<RecordType>()) { in TryUserDefinedConversion()
5225 if (S.isCompleteType(DeclLoc, SourceType)) { in TryUserDefinedConversion()
5665 QualType SourceType; in InitializeFrom() local
5677 SourceType = Initializer->getType(); in InitializeFrom()
5857 (Context.hasSameUnqualifiedType(SourceType, DestType) || in InitializeFrom()
[all …]
DSemaChecking.cpp11517 static void DiagnoseImpCast(Sema &S, Expr *E, QualType SourceType, QualType T, in DiagnoseImpCast() argument
11523 << SourceType << T << E->getSourceRange() in DiagnoseImpCast()
11528 << SourceType << T << E->getSourceRange() << SourceRange(CContext); in DiagnoseImpCast()
12394 QualType SourceType = E->getType(); in CheckImplicitConversion() local
12399 SourceType = S.Context.getTypeDeclType(Enum); in CheckImplicitConversion()
12400 Source = S.Context.getCanonicalType(SourceType).getTypePtr(); in CheckImplicitConversion()
12412 return DiagnoseImpCast(S, E, SourceType, T, CC, in CheckImplicitConversion()
DSemaDeclCXX.cpp12216 const Type *SourceType = UD->getQualifier()->getAsType(); in CheckInheritingConstructorUsingDecl() local
12217 assert(SourceType && in CheckInheritingConstructorUsingDecl()
12223 auto *Base = findDirectBaseWithType(TargetClass, QualType(SourceType, 0), in CheckInheritingConstructorUsingDecl()
12229 << QualType(SourceType, 0) << TargetClass; in CheckInheritingConstructorUsingDecl()
/external/llvm-project/clang/include/clang/Sema/
DOverload.h684 static ImplicitConversionSequence getNullptrToBool(QualType SourceType, in getNullptrToBool() argument
690 ICS.Standard.setFromType(SourceType); in getNullptrToBool()
693 ICS.Standard.setToType(0, SourceType); in getNullptrToBool()
/external/googletest/googlemock/test/
Dgmock-actions_test.cc601 class SourceType { class
608 SourceType s; in TEST()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DRangeConstraintManager.cpp712 template <class SourceType>
714 ProgramStateRef State, SourceType Origin) { in inferRange()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp12562 EVT SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() local
12575 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
12583 if (SourceType == MVT::Other) in reduceBuildVecExtToExtBuildVec()
12585 SourceType = InTy; in reduceBuildVecExtToExtBuildVec()
12586 else if (InTy != SourceType) { in reduceBuildVecExtToExtBuildVec()
12588 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
12600 bool ValidTypes = SourceType != MVT::Other && in reduceBuildVecExtToExtBuildVec()
12602 isPowerOf2_32(SourceType.getSizeInBits()); in reduceBuildVecExtToExtBuildVec()
12610 unsigned ElemRatio = OutScalarTy.getSizeInBits()/SourceType.getSizeInBits(); in reduceBuildVecExtToExtBuildVec()
12612 SDValue Filler = AllAnyExt ? DAG.getUNDEF(SourceType): in reduceBuildVecExtToExtBuildVec()
[all …]
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp3042 QualType SourceType, QualType ResType, in convertToType() argument
3047 convertToScalarValue(CGF, Value, SourceType, ResType, Loc)); in convertToType()
3049 auto Res = convertToComplexValue(CGF, Value, SourceType, ResType, Loc); in convertToType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp17336 EVT SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() local
17349 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
17357 if (SourceType == MVT::Other) in reduceBuildVecExtToExtBuildVec()
17359 SourceType = InTy; in reduceBuildVecExtToExtBuildVec()
17360 else if (InTy != SourceType) { in reduceBuildVecExtToExtBuildVec()
17362 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
17374 bool ValidTypes = SourceType != MVT::Other && in reduceBuildVecExtToExtBuildVec()
17376 isPowerOf2_32(SourceType.getSizeInBits()); in reduceBuildVecExtToExtBuildVec()
17384 unsigned ElemRatio = OutScalarTy.getSizeInBits()/SourceType.getSizeInBits(); in reduceBuildVecExtToExtBuildVec()
17386 SDValue Filler = AllAnyExt ? DAG.getUNDEF(SourceType): in reduceBuildVecExtToExtBuildVec()
[all …]
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp18515 EVT SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec() local
18528 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
18536 if (SourceType == MVT::Other) in reduceBuildVecExtToExtBuildVec()
18538 SourceType = InTy; in reduceBuildVecExtToExtBuildVec()
18539 else if (InTy != SourceType) { in reduceBuildVecExtToExtBuildVec()
18541 SourceType = MVT::Other; in reduceBuildVecExtToExtBuildVec()
18553 bool ValidTypes = SourceType != MVT::Other && in reduceBuildVecExtToExtBuildVec()
18555 isPowerOf2_32(SourceType.getSizeInBits()); in reduceBuildVecExtToExtBuildVec()
18568 unsigned ElemRatio = OutScalarTy.getSizeInBits()/SourceType.getSizeInBits(); in reduceBuildVecExtToExtBuildVec()
18570 SDValue Filler = AllAnyExt ? DAG.getUNDEF(SourceType): in reduceBuildVecExtToExtBuildVec()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGStmtOpenMP.cpp5193 QualType SourceType, QualType ResType, in convertToType() argument
5198 convertToScalarValue(CGF, Value, SourceType, ResType, Loc)); in convertToType()
5200 auto Res = convertToComplexValue(CGF, Value, SourceType, ResType, Loc); in convertToType()