Lines Matching refs:OrigElement
411 Expr *OrigElement = Element; in CheckObjCCollectionLiteralElement() local
425 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
426 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
427 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
428 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
429 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
430 if (S.NSAPIObj->getNSNumberFactoryMethodKind(OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
431 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
432 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
433 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
436 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
437 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
438 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
441 S.BuildObjCNumericLiteral(OrigElement->getBeginLoc(), OrigElement); in CheckObjCCollectionLiteralElement()
450 else if (StringLiteral *String = dyn_cast<StringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()
452 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
453 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
454 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
456 Result = S.BuildObjCStringLiteral(OrigElement->getBeginLoc(), String); in CheckObjCCollectionLiteralElement()
473 dyn_cast<ObjCStringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()