Lines Matching refs:OrigElement

418   Expr *OrigElement = Element;  in CheckObjCCollectionLiteralElement()  local
432 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
433 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
434 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
435 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
436 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
438 OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
439 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
440 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
441 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
444 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
445 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
446 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
448 Result = S.ObjC().BuildObjCNumericLiteral(OrigElement->getBeginLoc(), in CheckObjCCollectionLiteralElement()
449 OrigElement); in CheckObjCCollectionLiteralElement()
458 else if (StringLiteral *String = dyn_cast<StringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()
460 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
461 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
462 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement()
465 S.ObjC().BuildObjCStringLiteral(OrigElement->getBeginLoc(), String); in CheckObjCCollectionLiteralElement()
482 dyn_cast<ObjCStringLiteral>(OrigElement)) { in CheckObjCCollectionLiteralElement()