Lines Matching refs:OrigElement

412   Expr *OrigElement = Element;  in CheckObjCCollectionLiteralElement()  local
426 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
427 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
428 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
429 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
430 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
431 if (S.NSAPIObj->getNSNumberFactoryMethodKind(OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
432 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
433 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
434 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
437 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
438 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
439 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
441 Result = S.BuildObjCNumericLiteral(OrigElement->getLocStart(), in CheckObjCCollectionLiteralElement()
442 OrigElement); in CheckObjCCollectionLiteralElement()
451 else if (StringLiteral *String = dyn_cast<StringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()
453 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
454 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
455 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
457 Result = S.BuildObjCStringLiteral(OrigElement->getLocStart(), String); in CheckObjCCollectionLiteralElement()
474 dyn_cast<ObjCStringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()