Lines Matching refs:OrigElement

409   Expr *OrigElement = Element;  in CheckObjCCollectionLiteralElement()  local
423 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
424 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
425 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
426 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
427 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
428 if (S.NSAPIObj->getNSNumberFactoryMethodKind(OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
429 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
430 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
431 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
434 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
435 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
436 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
439 S.BuildObjCNumericLiteral(OrigElement->getBeginLoc(), OrigElement); in CheckObjCCollectionLiteralElement()
448 else if (StringLiteral *String = dyn_cast<StringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()
450 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
451 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
452 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
454 Result = S.BuildObjCStringLiteral(OrigElement->getBeginLoc(), String); in CheckObjCCollectionLiteralElement()
471 dyn_cast<ObjCStringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()