• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:expr

162       llvm_unreachable("unexpected expr in string literal init");
184 llvm_unreachable("unexpected expr in array compound literal init");
367 Expr *expr);
1323 Expr *expr = IList->getInit(Index);
1329 if (InitListExpr *SubInitList = dyn_cast<InitListExpr>(expr)) {
1335 expr = SubInitList->getInit(0);
1338 } else if (isa<ImplicitValueInitExpr>(expr)) {
1341 assert(SemaRef.Context.hasSameType(expr->getType(), ElemType) &&
1343 UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
1348 if (SemaRef.getLangOpts().CPlusPlus || isa<InitListExpr>(expr)) {
1355 InitializationKind::CreateCopy(expr->getBeginLoc(), SourceLocation());
1365 InitializationSequence Seq(SemaRef, TmpEntity, Kind, expr,
1374 if (Seq || isa<InitListExpr>(expr)) {
1376 ExprResult Result = Seq.Perform(SemaRef, TmpEntity, Kind, expr);
1403 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) {
1406 CheckStringInit(expr, ElemType, arrayType, SemaRef);
1408 UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
1427 ExprResult ExprRes = expr;
1464 SemaRef.PerformCopyInitialization(Entity, SourceLocation(), expr,
1538 Expr *expr = IList->getInit(Index);
1539 if (InitListExpr *SubIList = dyn_cast<InitListExpr>(expr)) {
1549 } else if (isa<DesignatedInitExpr>(expr)) {
1551 SemaRef.Diag(expr->getBeginLoc(),
1554 << expr->getSourceRange();
1563 if (SemaRef.CanPerformCopyInitialization(Entity, expr))
1569 SemaRef.PerformCopyInitialization(Entity, expr->getBeginLoc(), expr,
1580 if (ResultExpr != expr && !VerifyOnly) {
1613 Expr *expr = IList->getInit(Index);
1614 if (isa<InitListExpr>(expr) && !SemaRef.getLangOpts().CPlusPlus11) {
1626 if (SemaRef.CanPerformCopyInitialization(Entity,expr))
1632 SemaRef.PerformCopyInitialization(Entity, expr->getBeginLoc(), expr,
1639 expr = Result.getAs<Expr>();
1641 if (!VerifyOnly && expr)
1642 IList->setInit(Index, expr);
1647 UpdateStructuredListElement(StructuredList, StructuredIndex, expr);
3091 /// structured initializer list to the value @p expr.
3094 Expr *expr) {
3100 StructuredIndex, expr)) {
3102 diagnoseInitOverride(PrevInit, expr->getSourceRange());
5578 // C++ [expr.prim.lambda]p24: