|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/AST/Expr.h 3175 const char *getCastKindName() const { return getCastKindName(getCastKind()); }
3210 assert(getCastKind() == CK_ToUnion);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 4640 return Node.getCastKind() == Kind;
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp 54 if (castE->getCastKind() == CK_LValueToRValue)
56 if (castE->getCastKind() == CK_NoOp && castE->isLValue() &&
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 88 if (E->getCastKind() != CK_CPointerToObjCPointerCast &&
89 E->getCastKind() != CK_BitCast &&
90 E->getCastKind() != CK_AnyPointerToBlockPointerCast)
394 if (implCE->getCastKind() == CK_ARCConsumeObject)
396 if (implCE->getCastKind() == CK_ARCReclaimReturnedObject)
tools/clang/lib/ARCMigrate/Transforms.cpp 107 while (implCE && implCE->getCastKind() == CK_BitCast)
110 return implCE && implCE->getCastKind() == CK_ARCConsumeObject;
tools/clang/lib/AST/ASTImporter.cpp 6738 Importer.getToContext(), *ToTypeOrErr, E->getCastKind(), *ToSubExprOrErr,
6768 Importer.getToContext(), ToType, E->getValueKind(), E->getCastKind(),
6783 E->getCastKind(), ToSubExpr, ToBasePath, *ToLParenLocOrErr,
6796 *ToLParenLocOrErr, OCE->getBridgeKind(), E->getCastKind(),
7673 CastKind CK = E->getCastKind();
tools/clang/lib/AST/Expr.cpp 84 if ((CE->getCastKind() == CK_DerivedToBase ||
85 CE->getCastKind() == CK_UncheckedDerivedToBase) &&
94 if (CE->getCastKind() == CK_NoOp) {
1758 switch (getCastKind()) {
1912 if (E->getCastKind() == CK_ConstructorConversion)
1915 else if (E->getCastKind() == CK_UserDefinedConversion) {
1936 if (E->getCastKind() == CK_ConstructorConversion)
1939 if (E->getCastKind() == CK_UserDefinedConversion) {
2669 if (CE->getCastKind() == CK_ToVoid) {
2686 if (CE->getCastKind() == CK_ConstructorConversion)
2705 if (ICE->getCastKind() == CK_LValueToRValue &&
2853 if (CE->getCastKind() != CK_LValueToRValue)
2861 if (CE->getCastKind() == CK_DerivedToBase ||
2862 CE->getCastKind() == CK_UncheckedDerivedToBase ||
2863 CE->getCastKind() == CK_NoOp)
3017 if (ICE->getCastKind() == CK_NoOp)
3027 if (ICE->getCastKind() == CK_NoOp)
3056 switch (cast<ImplicitCastExpr>(E)->getCastKind()) {
3091 if (ICE->getCastKind() == CK_NoOp ||
3092 ICE->getCastKind() == CK_LValueToRValue ||
3093 ICE->getCastKind() == CK_DerivedToBase ||
3094 ICE->getCastKind() == CK_UncheckedDerivedToBase) {
3274 if (CE->getCastKind() == CK_NoOp ||
3275 CE->getCastKind() == CK_LValueToRValue ||
3276 CE->getCastKind() == CK_ToUnion ||
3277 CE->getCastKind() == CK_ConstructorConversion ||
3278 CE->getCastKind() == CK_NonAtomicToAtomic ||
3279 CE->getCastKind() == CK_AtomicToNonAtomic ||
3280 CE->getCastKind() == CK_IntToOCLSampler)
3527 DCE->getCastKind() == CK_Dynamic)
3546 if (CE->getCastKind() == CK_LValueToRValue &&
3845 if (ICE->getCastKind() == CK_LValueToRValue ||
3846 (ICE->getValueKind() != VK_RValue && ICE->getCastKind() == CK_NoOp))
3894 ICE->getCastKind() == CK_NoOp)
3953 if (ICE1->getCastKind() != ICE2->getCastKind())
3953 if (ICE1->getCastKind() != ICE2->getCastKind())
3958 if (ICE1->getCastKind() == CK_LValueToRValue ||
3959 ICE1->getCastKind() == CK_ArrayToPointerDecay ||
3960 ICE1->getCastKind() == CK_FunctionToPointerDecay) {
tools/clang/lib/AST/ExprCXX.cpp 307 if (ICE->getCastKind() == CK_DerivedToBase ||
308 ICE->getCastKind() == CK_UncheckedDerivedToBase ||
309 ICE->getCastKind() == CK_NoOp) {
310 assert((ICE->getCastKind() == CK_NoOp ||
tools/clang/lib/AST/ExprConstant.cpp 5367 if (ICE->getCastKind() == CK_NoOp)
5369 if (ICE->getCastKind() != CK_DerivedToBase &&
5370 ICE->getCastKind() != CK_UncheckedDerivedToBase)
7055 switch (E->getCastKind()) {
7264 switch (E->getCastKind()) {
7346 switch (E->getCastKind()) {
7937 switch (E->getCastKind()) {
7968 if (E->getCastKind() == CK_AddressSpaceConversion && Result.IsNullPtr)
8520 if (ICE->getCastKind() != CK_NoOp &&
8521 ICE->getCastKind() != CK_IntegralCast)
8696 switch (E->getCastKind()) {
8864 switch (E->getCastKind()) {
9185 switch (E->getCastKind()) {
9266 switch (E->getCastKind()) {
10208 auto CastKind = Cast->getCastKind();
12066 switch (E->getCastKind()) {
12133 if (BoolResult && E->getCastKind() == CK_BooleanToSignedIntegral)
12305 switch (E->getCastKind()) {
12574 switch (E->getCastKind()) {
12683 switch (E->getCastKind()) {
13128 switch (E->getCastKind()) {
13161 switch (E->getCastKind()) {
14146 switch (cast<CastExpr>(E)->getCastKind()) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp 92 switch (CE->getCastKind()) {
tools/clang/lib/Analysis/CFG.cpp 81 if (CE->getCastKind() != CK_IntegralCast)
1408 switch (Cast->getCastKind()) {
4566 if (E->getCastKind() == CK_IntegralToBoolean)
tools/clang/lib/Analysis/ThreadSafety.cpp 1762 if (CE->getCastKind() == CK_ArrayToPointerDecay) {
1997 if (CE->getCastKind() != CK_LValueToRValue)
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 564 CastKind K = CE->getCastKind();
tools/clang/lib/Analysis/UninitializedValues.cpp 300 if (CE->getCastKind() == CK_LValueBitCast) {
496 if (CE->getCastKind() == CK_LValueToRValue)
tools/clang/lib/CodeGen/CGCXXABI.cpp 234 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer ||
235 E->getCastKind() == CK_BaseToDerivedMemberPointer);
238 if (E->getCastKind() == CK_DerivedToBaseMemberPointer)
tools/clang/lib/CodeGen/CGCall.cpp 3616 cast<CastExpr>(E)->getCastKind() == CK_LValueToRValue) {
tools/clang/lib/CodeGen/CGDecl.cpp 668 switch (castExpr->getCastKind()) {
tools/clang/lib/CodeGen/CGExpr.cpp 938 if (CE->getCastKind() == CK_ArrayToPointerDecay &&
1049 switch (CE->getCastKind()) {
1085 CE->getCastKind() == CK_BitCast) {
1092 return CE->getCastKind() != CK_AddressSpaceConversion
3354 if (!CE || CE->getCastKind() != CK_ArrayToPointerDecay)
4291 switch (E->getCastKind()) {
4560 if (ICE->getCastKind() == CK_FunctionToPointerDecay ||
4561 ICE->getCastKind() == CK_BuiltinFnToFnPtr) {
tools/clang/lib/CodeGen/CGExprAgg.cpp 671 if (castE->getCastKind() == kind)
673 if (castE->getCastKind() == CK_NoOp)
683 switch (E->getCastKind()) {
745 bool isToAtomic = (E->getCastKind() == CK_NonAtomicToAtomic);
1117 if (cast->getCastKind() == CK_LValueToRValue)
1376 return ICE->getCastKind() == CK_NullToPointer &&
tools/clang/lib/CodeGen/CGExprComplex.cpp 175 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType());
180 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType());
tools/clang/lib/CodeGen/CGExprConstant.cpp 1033 switch (E->getCastKind()) {
tools/clang/lib/CodeGen/CGExprScalar.cpp 1936 if (CE->getCastKind() == CK_UncheckedDerivedToBase)
1959 CastKind Kind = CE->getCastKind();
tools/clang/lib/CodeGen/CGObjC.cpp 299 if (!ice || ice->getCastKind() != CK_LValueToRValue) return true;
347 if (CE->getCastKind() == CK_LValueToRValue) {
2861 switch (cast->getCastKind()) {
2982 switch (e->getCastKind()) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 555 if (E->getCastKind() == CK_ArrayToPointerDecay) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 834 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer ||
835 E->getCastKind() == CK_BaseToDerivedMemberPointer ||
836 E->getCastKind() == CK_ReinterpretMemberPointer);
839 if (E->getCastKind() == CK_ReinterpretMemberPointer) return src;
849 bool isDerivedToBase = (E->getCastKind() == CK_DerivedToBaseMemberPointer);
889 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer ||
890 E->getCastKind() == CK_BaseToDerivedMemberPointer ||
891 E->getCastKind() == CK_ReinterpretMemberPointer);
894 if (E->getCastKind() == CK_ReinterpretMemberPointer) return src;
900 bool isDerivedToBase = (E->getCastKind() == CK_DerivedToBaseMemberPointer);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 3082 assert(E->getCastKind() == CK_DerivedToBaseMemberPointer ||
3083 E->getCastKind() == CK_BaseToDerivedMemberPointer ||
3084 E->getCastKind() == CK_ReinterpretMemberPointer);
3098 bool IsReinterpret = E->getCastKind() == CK_ReinterpretMemberPointer;
3130 SrcTy, DstTy, E->getCastKind(), E->path_begin(), E->path_end(), Src,
3292 CastKind CK = E->getCastKind();
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 948 if (ICE->getCastKind() != CK_CPointerToObjCPointerCast)
1002 switch (ICE->getCastKind()) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 4752 CastKind CastKind = IC->getCastKind();
tools/clang/lib/Index/IndexBody.cpp 66 if (ICE->getCastKind() == CK_LValueToRValue)
tools/clang/lib/Sema/Sema.cpp 548 if (ImpCast->getCastKind() == Kind && (!BasePath || BasePath->empty())) {
tools/clang/lib/Sema/SemaChecking.cpp 5791 if (Cast->getCastKind() == CK_FloatingCast) {
8275 if (ICE->getCastKind() == CK_IntegralCast &&
8286 return ICE->getCastKind() == CK_FloatingCast &&
10222 if (CE->getCastKind() == CK_NoOp || CE->getCastKind() == CK_LValueToRValue)
10222 if (CE->getCastKind() == CK_NoOp || CE->getCastKind() == CK_LValueToRValue)
10227 bool isIntegerCast = CE->getCastKind() == CK_IntegralCast ||
10228 CE->getCastKind() == CK_BooleanToSignedIntegral;
10634 if (ICE->getCastKind() != CK_IntegralCast &&
10635 ICE->getCastKind() != CK_NoOp)
11360 if (ICE->getCastKind() == CK_BitCast &&
12749 if (E->getCastKind() == CK_LValueToRValue)
13168 if (CE->getCastKind() == CK_ArrayToPointerDecay)
13467 switch (cast->getCastKind()) {
13913 if (cast->getCastKind() == CK_ARCConsumeObject) {
13991 if (cast->getCastKind() == CK_ARCConsumeObject) {
14573 ICE->getCastKind() == CK_BitCast)
tools/clang/lib/Sema/SemaDecl.cpp10936 if (E->getCastKind() == CK_LValueToRValue) {
11012 if (ICE->getCastKind() == CK_NoOp)
11086 if (ICE->getCastKind() == CK_LValueToRValue)
tools/clang/lib/Sema/SemaDeclCXX.cpp 3564 if (BaseCast->getCastKind() == CK_UncheckedDerivedToBase) {
3694 if (E->getCastKind() == CK_LValueToRValue) {
3709 if (ICE->getCastKind() == CK_NoOp)
tools/clang/lib/Sema/SemaExceptionSpec.cpp 1046 return DC->getCastKind() == clang::CK_Dynamic? CT_Can : CT_Cannot;
tools/clang/lib/Sema/SemaExpr.cpp 3807 if (!ICE || ICE->getCastKind() != CK_ArrayToPointerDecay)
10189 CastKind CK = cast<CastExpr>(Inner)->getCastKind();
10465 SCS.Second = castKindToImplicitConversionKind(ICE->getCastKind());
12012 if (CE->getCastKind() == CK_ToVoid) {
12017 if (CE->getCastKind() == CK_Dependent && E->getType()->isVoidType() &&
13845 if (Cast && Cast->getCastKind() == CK_ARCConsumeObject)
16598 switch (ICE->getCastKind()) {
16606 return S.ImpCastExprToType(Sub.get(), ICE->getType(), ICE->getCastKind(),
17640 if (E->getCastKind() == CK_FunctionToPointerDecay) {
17654 } else if (E->getCastKind() == CK_LValueToRValue) {
tools/clang/lib/Sema/SemaExprCXX.cpp 3565 assert(Callee && Callee->getCastKind() == CK_BuiltinFnToFnPtr &&
7199 if (CE && CE->getCastKind() == CK_NoOp)
tools/clang/lib/Sema/SemaExprObjC.cpp 531 if (CE->getCastKind() == CK_ArrayToPointerDecay)
3379 switch (e->getCastKind()) {
4411 if (ice->getCastKind() == CK_ARCReclaimReturnedObject) {
tools/clang/lib/Sema/SemaInit.cpp 5334 switch (ce->getCastKind()) {
6929 if (ICE && ICE->getCastKind() == CK_ArrayToPointerDecay)
7052 switch (CE->getCastKind()) {
tools/clang/lib/Sema/SemaLambda.cpp 619 if (ICE->getCastKind() == CK_IntegralCast)
tools/clang/lib/Sema/SemaOverload.cpp 272 switch (ICE->getCastKind()) {
14156 ICE->getCastKind(),
tools/clang/lib/Sema/SemaStmt.cpp 277 if (Cast->getCastKind() == CK_NoOp ||
278 Cast->getCastKind() == CK_ConstructorConversion)
656 if (ImpCast->getCastKind() != CK_IntegralCast) break;
1478 if (E->getCastKind() == CK_LValueToRValue)
2793 if (CE->getCastKind() != CK_LValueToRValue)
tools/clang/lib/Sema/SemaStmtAsm.cpp 50 if (CastE->getCastKind() == CK_LValueToRValue) {
tools/clang/lib/Serialization/ASTWriterStmt.cpp 765 Record.push_back(E->getCastKind()); // FIXME: stable encoding
tools/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp 122 if (ImplCastE->getCastKind() != CK_DerivedToBase)
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypeChecker.cpp 157 if (CE->getCastKind() != CK_BitCast)
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 522 if (CE->getCastKind() != CK_BitCast)
tools/clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp 101 switch (CE->getCastKind()) {
tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp 259 if (CE->getCastKind() != CastKind::CK_BitCast)
277 if (CE->getCastKind() != CastKind::CK_ArrayToPointerDecay)
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 282 ICE->getCastKind() == CK_CopyAndAutoreleaseBlockObject) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 104 if (CE->getCastKind() == CK_LValueToRValue) {
151 if (CE->getCastKind() == CK_LValueToRValue)
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 2616 if (!PE || PE->getCastKind() != CK_ArrayToPointerDecay) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp 274 if (CastE->getCastKind() == CK_BooleanToSignedIntegral)
307 if (CastE->getCastKind() == CK_LValueToRValue) {
333 switch (CastE->getCastKind()) {
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp 339 switch (CE->getCastKind()) {
tools/clang/tools/extra/clang-tidy/bugprone/SwappedArgumentsCheck.cpp 30 if (Cast->getCastKind() == CK_LValueToRValue ||
31 Cast->getCastKind() == CK_NoOp)
40 return Cast->getCastKind() == CK_UserDefinedConversion ||
41 Cast->getCastKind() == CK_FloatingToBoolean ||
42 Cast->getCastKind() == CK_FloatingToIntegral ||
43 Cast->getCastKind() == CK_IntegralToBoolean ||
44 Cast->getCastKind() == CK_IntegralToFloating ||
45 Cast->getCastKind() == CK_MemberPointerToBoolean ||
46 Cast->getCastKind() == CK_PointerToBoolean;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp 403 switch (Cast.getCastKind()) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp 72 if (MatchedCast->getCastKind() != CK_ArrayToPointerDecay)
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp 43 if (MatchedCast->getCastKind() == CK_BitCast ||
44 MatchedCast->getCastKind() == CK_LValueBitCast ||
45 MatchedCast->getCastKind() == CK_IntegralToPointer ||
46 MatchedCast->getCastKind() == CK_PointerToIntegral ||
47 MatchedCast->getCastKind() == CK_ReinterpretMemberPointer) {
55 if (MatchedCast->getCastKind() == CK_BaseToDerived) {
98 if (MatchedCast->getCastKind() == CK_NoOp &&
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeStaticCastDowncastCheck.cpp 31 if (MatchedCast->getCastKind() != CK_BaseToDerived)
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp 67 if (CastExpr->getCastKind() == CK_ToVoid)
93 if (CastExpr->getCastKind() == CK_NoOp && !FnToFnCast) {
157 switch (CastExpr->getCastKind()) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 399 if ((Cast->getCastKind() == CK_NoOp &&
401 (Cast->getCastKind() == CK_LValueToRValue &&
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp 132 if (Cast && (Cast->getCastKind() == CK_NullToPointer ||
133 Cast->getCastKind() == CK_NullToMemberPointer))
211 if (C->getCastKind() != CK_NullToPointer &&
212 C->getCastKind() != CK_NullToMemberPointer) {
tools/clang/tools/extra/clang-tidy/performance/ImplicitConversionInLoopCheck.cpp 29 return (ICE->getCastKind() != CK_NoOp) ||
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 140 Cast->getCastKind(), SubExpr->getType(), Context);
352 (Cast->getCastKind() == CK_PointerToBoolean ||
353 Cast->getCastKind() == CK_MemberPointerToBoolean) &&
358 if (AllowIntegerConditions && Cast->getCastKind() == CK_IntegralToBoolean &&
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 139 return ImpCast->getCastKind() == CK_PointerToBoolean ||
140 ImpCast->getCastKind() == CK_MemberPointerToBoolean;
147 return ImpCast->getCastKind() == CK_IntegralToBoolean;
154 if (ImpCast->getCastKind() == CK_UserDefinedConversion &&
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp 238 if (implicit_cast->getCastKind() != CK_LValueToRValue)