Home | History | Annotate | Download | only in Sema

Lines Matching refs:Op

247   CastOperation Op(*this, DestType, E);
248 Op.OpRange = SourceRange(OpLoc, Parens.getEnd());
249 Op.DestRange = AngleBrackets;
256 Op.CheckConstCast();
257 if (Op.SrcExpr.isInvalid())
260 return Op.complete(CXXConstCastExpr::Create(Context, Op.ResultType,
261 Op.ValueKind, Op.SrcExpr.get(), DestTInfo,
267 Op.CheckDynamicCast();
268 if (Op.SrcExpr.isInvalid())
271 return Op.complete(CXXDynamicCastExpr::Create(Context, Op.ResultType,
272 Op.ValueKind, Op.Kind, Op.SrcExpr.get(),
273 &Op.BasePath, DestTInfo,
279 Op.CheckReinterpretCast();
280 if (Op.SrcExpr.isInvalid())
283 return Op.complete(CXXReinterpretCastExpr::Create(Context, Op.ResultType,
284 Op.ValueKind, Op.Kind, Op.SrcExpr.get(),
291 Op.CheckStaticCast();
292 if (Op.SrcExpr.isInvalid())
296 return Op.complete(CXXStaticCastExpr::Create(Context, Op.ResultType,
297 Op.ValueKind, Op.Kind, Op.SrcExpr.get(),
298 &Op.BasePath, DestTInfo,
2597 CastOperation Op(*this, CastTypeInfo->getType(), CastExpr);
2598 Op.DestRange = CastTypeInfo->getTypeLoc().getSourceRange();
2599 Op.OpRange = SourceRange(LPLoc, CastExpr->getLocEnd());
2602 Op.CheckCXXCStyleCast(/*FunctionalStyle=*/ false,
2605 Op.CheckCStyleCast();
2608 if (Op.SrcExpr.isInvalid())
2611 return Op.complete(CStyleCastExpr::Create(Context, Op.ResultType,
2612 Op.ValueKind, Op.Kind, Op.SrcExpr.get(),
2613 &Op.BasePath, CastTypeInfo, LPLoc, RPLoc));
2621 CastOperation Op(*this, CastTypeInfo->getType(), CastExpr);
2622 Op.DestRange = CastTypeInfo->getTypeLoc().getSourceRange();
2623 Op.OpRange = SourceRange(Op.DestRange.getBegin(), CastExpr->getLocEnd());
2625 Op.CheckCXXCStyleCast(/*FunctionalStyle=*/true, /*ListInit=*/false);
2626 if (Op.SrcExpr.isInvalid())
2629 auto *SubExpr = Op.SrcExpr.get();
2635 return Op.complete(CXXFunctionalCastExpr::Create(Context, Op.ResultType,
2636 Op.ValueKind, CastTypeInfo, Op.Kind,
2637 Op.SrcExpr.get(), &Op.BasePath, LPLoc, RPLoc));