• Home
  • Raw
  • Download

Lines Matching refs:OrigElement

410   Expr *OrigElement = Element;  in CheckObjCCollectionLiteralElement()  local
424 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
425 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
426 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
427 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
428 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
429 if (S.NSAPIObj->getNSNumberFactoryMethodKind(OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
430 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
431 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
432 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
435 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
436 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
437 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
439 Result = S.BuildObjCNumericLiteral(OrigElement->getLocStart(), in CheckObjCCollectionLiteralElement()
440 OrigElement); in CheckObjCCollectionLiteralElement()
449 else if (StringLiteral *String = dyn_cast<StringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()
451 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
452 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
453 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
455 Result = S.BuildObjCStringLiteral(OrigElement->getLocStart(), String); in CheckObjCCollectionLiteralElement()
472 dyn_cast<ObjCStringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()