Home
last modified time | relevance | path

Searched refs:getCastKind (Results 1 – 25 of 55) sorted by relevance

123

/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp89 if (E->getCastKind() != CK_CPointerToObjCPointerCast && in VisitCastExpr()
90 E->getCastKind() != CK_BitCast && in VisitCastExpr()
91 E->getCastKind() != CK_AnyPointerToBlockPointerCast) in VisitCastExpr()
397 if (implCE->getCastKind() == CK_ARCConsumeObject) in transformObjCToNonObjCCast()
399 if (implCE->getCastKind() == CK_ARCReclaimReturnedObject) in transformObjCToNonObjCCast()
DTransBlockObjCVariable.cpp55 if (castE->getCastKind() == CK_LValueToRValue) in TraverseImplicitCastExpr()
57 if (castE->getCastKind() == CK_NoOp && castE->isLValue() && in TraverseImplicitCastExpr()
DTransforms.cpp113 while (implCE && implCE->getCastKind() == CK_BitCast) in isPlusOne()
116 return implCE && implCE->getCastKind() == CK_ARCConsumeObject; in isPlusOne()
/external/clang/lib/AST/
DExpr.cpp62 if ((CE->getCastKind() == CK_DerivedToBase || in skipRValueSubobjectAdjustments()
63 CE->getCastKind() == CK_UncheckedDerivedToBase) && in skipRValueSubobjectAdjustments()
72 if (CE->getCastKind() == CK_NoOp) { in skipRValueSubobjectAdjustments()
1486 switch (getCastKind()) { in CastConsistency()
1598 switch (getCastKind()) { in getCastKindName()
1622 if (E->getCastKind() == CK_ConstructorConversion) in getSubExprAsWritten()
1624 else if (E->getCastKind() == CK_UserDefinedConversion) { in getSubExprAsWritten()
2162 if (CE->getCastKind() == CK_ToVoid) { in isUnusedResultAWarning()
2178 if (CE->getCastKind() == CK_ConstructorConversion) in isUnusedResultAWarning()
2197 if (ICE->getCastKind() == CK_LValueToRValue && in isUnusedResultAWarning()
[all …]
DExprConstant.cpp4479 switch (E->getCastKind()) { in VisitCastExpr()
4671 switch (E->getCastKind()) { in VisitCastExpr()
4753 switch (E->getCastKind()) { in VisitCastExpr()
5114 switch (E->getCastKind()) { in VisitCastExpr()
5356 switch (E->getCastKind()) { in VisitCastExpr()
5522 switch (E->getCastKind()) { in VisitCastExpr()
5797 switch (E->getCastKind()) { in VisitCastExpr()
5875 switch (E->getCastKind()) { in VisitCastExpr()
6597 auto CastKind = Cast->getCastKind(); in ignorePointerCastsAndParens()
8024 switch (E->getCastKind()) { in VisitCastExpr()
[all …]
/external/clang/lib/CodeGen/
DCGCXXABI.cpp266 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer || in getMemberPointerAdjustment()
267 E->getCastKind() == CK_BaseToDerivedMemberPointer); in getMemberPointerAdjustment()
270 if (E->getCastKind() == CK_DerivedToBaseMemberPointer) in getMemberPointerAdjustment()
DCGExprAgg.cpp566 if (castE->getCastKind() == kind) in findPeephole()
568 if (castE->getCastKind() == CK_NoOp) in findPeephole()
578 switch (E->getCastKind()) { in VisitCastExpr()
621 bool isToAtomic = (E->getCastKind() == CK_NonAtomicToAtomic); in VisitCastExpr()
840 if (cast->getCastKind() == CK_LValueToRValue) in isBlockVarRef()
1052 return ICE->getCastKind() == CK_NullToPointer; in isSimpleZero()
DItaniumCXXABI.cpp658 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer || in EmitMemberPointerConversion()
659 E->getCastKind() == CK_BaseToDerivedMemberPointer || in EmitMemberPointerConversion()
660 E->getCastKind() == CK_ReinterpretMemberPointer); in EmitMemberPointerConversion()
663 if (E->getCastKind() == CK_ReinterpretMemberPointer) return src; in EmitMemberPointerConversion()
673 bool isDerivedToBase = (E->getCastKind() == CK_DerivedToBaseMemberPointer); in EmitMemberPointerConversion()
713 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer || in EmitMemberPointerConversion()
714 E->getCastKind() == CK_BaseToDerivedMemberPointer || in EmitMemberPointerConversion()
715 E->getCastKind() == CK_ReinterpretMemberPointer); in EmitMemberPointerConversion()
718 if (E->getCastKind() == CK_ReinterpretMemberPointer) return src; in EmitMemberPointerConversion()
724 bool isDerivedToBase = (E->getCastKind() == CK_DerivedToBaseMemberPointer); in EmitMemberPointerConversion()
DCGExprComplex.cpp154 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType()); in VisitImplicitCastExpr()
159 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType()); in VisitCastExpr()
DMicrosoftCXXABI.cpp2984 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer || in EmitMemberPointerConversion()
2985 E->getCastKind() == CK_BaseToDerivedMemberPointer || in EmitMemberPointerConversion()
2986 E->getCastKind() == CK_ReinterpretMemberPointer); in EmitMemberPointerConversion()
3000 bool IsReinterpret = E->getCastKind() == CK_ReinterpretMemberPointer; in EmitMemberPointerConversion()
3032 SrcTy, DstTy, E->getCastKind(), E->path_begin(), E->path_end(), Src, in EmitMemberPointerConversion()
3194 CastKind CK = E->getCastKind(); in EmitMemberPointerConversion()
DCGObjC.cpp284 if (!ice || ice->getCastKind() != CK_LValueToRValue) return true; in shouldExtendReceiverForInnerPointerMessage()
332 if (CE->getCastKind() == CK_LValueToRValue) { in findWeakLValue()
2558 switch (cast->getCastKind()) { in shouldEmitSeparateBlockRetain()
2672 switch (e->getCastKind()) { in visitCastExpr()
DCGExpr.cpp729 if (CE->getCastKind() == CK_ArrayToPointerDecay && in getArrayIndexingBound()
832 switch (CE->getCastKind()) { in EmitPointerWithAlignment()
853 CE->getCastKind() == CK_BitCast) { in EmitPointerWithAlignment()
2795 if (!CE || CE->getCastKind() != CK_ArrayToPointerDecay) in isSimpleArrayDecayOperand()
3565 switch (E->getCastKind()) { in EmitCastLValue()
/external/clang/lib/StaticAnalyzer/Checkers/
DPointerArithChecker.cpp262 if (CE->getCastKind() != CastKind::CK_BitCast) in checkPostStmt()
280 if (CE->getCastKind() != CastKind::CK_ArrayToPointerDecay) in checkPreStmt()
DDynamicTypeChecker.cpp166 if (CE->getCastKind() != CK_BitCast) in checkPostStmt()
DStackAddrEscapeChecker.cpp163 ICE->getCastKind() == CK_CopyAndAutoreleaseBlockObject) { in checkPreStmt()
DDynamicTypePropagation.cpp524 if (CE->getCastKind() != CK_BitCast) in checkPostStmt()
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h101 static clang::CastKind getCastKind(llvm::StringRef AttrKind) {
111 getCastKind(Value.getString()) != CK_Invalid;
114 return getCastKind(Value.getString());
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp255 if (CastE->getCastKind() == CK_LValueToRValue) { in VisitCast()
281 switch (CastE->getCastKind()) { in VisitCast()
349 if (CastE->getCastKind() == CK_BooleanToSignedIntegral) in VisitCast()
DSValBuilder.cpp295 switch (CE->getCastKind()) { in getConstantVal()
DExprEngine.cpp213 if (CE->getCastKind() == CK_DerivedToBase || in createTemporaryRegionIfNeeded()
214 CE->getCastKind() == CK_UncheckedDerivedToBase) in createTemporaryRegionIfNeeded()
216 else if (CE->getCastKind() != CK_NoOp) in createTemporaryRegionIfNeeded()
2054 if (!PE || PE->getCastKind() != CK_ArrayToPointerDecay) { in VisitMemberExpr()
/external/clang/lib/Analysis/
DUninitializedValues.cpp281 if (CE->getCastKind() == CK_LValueBitCast) { in stripCasts()
473 if (CE->getCastKind() == CK_LValueToRValue) in VisitCastExpr()
/external/clang/lib/Index/
DIndexBody.cpp62 if (ICE->getCastKind() == CK_LValueToRValue) in getRolesForRef()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp946 if (ICE->getCastKind() != CK_CPointerToObjCPointerCast) in objectifyExpr()
1000 switch (ICE->getCastKind()) { in rewriteToNumericBoxedExpression()
/external/clang/lib/Sema/
DSemaChecking.cpp5139 if (ICE->getCastKind() == CK_IntegralCast || in checkFormatExpr()
5140 ICE->getCastKind() == CK_FloatingCast) { in checkFormatExpr()
6701 switch (cast<CastExpr>(E)->getCastKind()) { in EvalAddr()
7125 if (CE->getCastKind() == CK_NoOp || CE->getCastKind() == CK_LValueToRValue) in GetExprRange()
7130 bool isIntegerCast = CE->getCastKind() == CK_IntegralCast || in GetExprRange()
7131 CE->getCastKind() == CK_BooleanToSignedIntegral; in GetExprRange()
7393 if (ICE->getCastKind() != CK_IntegralCast && in HasEnumType()
7394 ICE->getCastKind() != CK_NoOp) in HasEnumType()
8046 if (ICE->getCastKind() == CK_BitCast && in checkObjCCollectionLiteralElement()
9138 if (E->getCastKind() == CK_LValueToRValue) in VisitCastExpr()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringARM32.cpp606 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
3597 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1ForBranch()
3895 InstCast::OpKind CastKind = Instr->getCastKind(); in lowerCast()
6752 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1ForSelect()
6853 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1()
6884 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) { in shouldTrackProducer()
6912 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) { in isValidConsumer()

123