Home | History | Annotate | Download | only in Sema

Lines Matching refs:tcr

42 static bool isValidCast(TryCastResult TCR) {
43 return TCR == TC_Success || TCR == TC_Extension;
925 auto TCR = TryConstCast(Self, SrcExpr, DestType, /*CStyle*/ false, msg);
926 if (TCR != TC_Success && msg != 0) {
930 if (!isValidCast(TCR))
936 auto TCR =
938 if (TCR != TC_Success && msg != 0) {
942 if (!isValidCast(TCR))
1137 TryCastResult tcr =
1140 if (tcr != TC_Success && msg != 0) {
1156 if (isValidCast(tcr)) {
1216 TryCastResult tcr
1219 if (tcr != TC_Success && msg != 0) {
1234 if (isValidCast(tcr)) {
1283 TryCastResult tcr;
1288 tcr = TryStaticReferenceDowncast(Self, SrcExpr.get(), DestType, CStyle,
1290 if (tcr != TC_NotApplicable)
1291 return tcr;
1296 tcr = TryLValueToRValueCast(Self, SrcExpr.get(), DestType, CStyle, Kind,
1298 if (tcr != TC_NotApplicable)
1299 return tcr;
1303 tcr = TryStaticImplicitCast(Self, SrcExpr, DestType, CCK, OpRange, msg,
1307 if (tcr != TC_NotApplicable)
1308 return tcr;
1369 tcr = TryStaticPointerDowncast(Self, SrcType, DestType, CStyle, OpRange, msg,
1371 if (tcr != TC_NotApplicable)
1372 return tcr;
1377 tcr = TryStaticMemberPointerUpcast(Self, SrcExpr, SrcType, DestType, CStyle,
1379 if (tcr != TC_NotApplicable)
1380 return tcr;
2698 TryCastResult tcr = TryConstCast(Self, SrcExpr, DestType,
2702 if (isValidCast(tcr))
2707 if (tcr == TC_NotApplicable) {
2708 tcr = TryAddressSpaceCast(Self, SrcExpr, DestType, /*CStyle*/ true, msg,
2713 if (tcr == TC_NotApplicable) {
2716 tcr = TryStaticCast(Self, SrcExpr, DestType, CCK, OpRange, msg, Kind,
2721 if (tcr == TC_NotApplicable) {
2723 tcr = TryReinterpretCast(Self, SrcExpr, DestType, /*CStyle*/ true,
2732 isValidCast(tcr))
2735 if (tcr != TC_Success && msg != 0) {
2758 if (isValidCast(tcr)) {