Lines Matching refs:Element
384 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement() argument
388 if (Element->isTypeDependent()) in CheckObjCCollectionLiteralElement()
389 return Element; in CheckObjCCollectionLiteralElement()
391 ExprResult Result = S.CheckPlaceholderExpr(Element); in CheckObjCCollectionLiteralElement()
394 Element = Result.get(); in CheckObjCCollectionLiteralElement()
398 if (S.getLangOpts().CPlusPlus && Element->getType()->isRecordType()) { in CheckObjCCollectionLiteralElement()
403 Element->getBeginLoc(), SourceLocation()); in CheckObjCCollectionLiteralElement()
404 InitializationSequence Seq(S, Entity, Kind, Element); in CheckObjCCollectionLiteralElement()
406 return Seq.Perform(S, Entity, Kind, Element); in CheckObjCCollectionLiteralElement()
409 Expr *OrigElement = Element; in CheckObjCCollectionLiteralElement()
412 Result = S.DefaultLvalueConversion(Element); in CheckObjCCollectionLiteralElement()
415 Element = Result.get(); in CheckObjCCollectionLiteralElement()
418 if (!Element->getType()->isObjCObjectPointerType() && in CheckObjCCollectionLiteralElement()
419 !Element->getType()->isBlockPointerType()) { in CheckObjCCollectionLiteralElement()
443 Element = Result.get(); in CheckObjCCollectionLiteralElement()
458 Element = Result.get(); in CheckObjCCollectionLiteralElement()
464 S.Diag(Element->getBeginLoc(), diag::err_invalid_collection_element) in CheckObjCCollectionLiteralElement()
465 << Element->getType(); in CheckObjCCollectionLiteralElement()
483 S.Diag(Element->getBeginLoc(), in CheckObjCCollectionLiteralElement()
485 << Element->getType(); in CheckObjCCollectionLiteralElement()
495 Element->getBeginLoc(), Element); in CheckObjCCollectionLiteralElement()
1013 for (ObjCDictionaryElement &Element : Elements) { in BuildObjCDictionaryLiteral()
1015 ExprResult Key = CheckObjCCollectionLiteralElement(*this, Element.Key, in BuildObjCDictionaryLiteral()
1022 = CheckObjCCollectionLiteralElement(*this, Element.Value, ValueT); in BuildObjCDictionaryLiteral()
1026 Element.Key = Key.get(); in BuildObjCDictionaryLiteral()
1027 Element.Value = Value.get(); in BuildObjCDictionaryLiteral()
1029 if (Element.EllipsisLoc.isInvalid()) in BuildObjCDictionaryLiteral()
1032 if (!Element.Key->containsUnexpandedParameterPack() && in BuildObjCDictionaryLiteral()
1033 !Element.Value->containsUnexpandedParameterPack()) { in BuildObjCDictionaryLiteral()
1034 Diag(Element.EllipsisLoc, in BuildObjCDictionaryLiteral()
1036 << SourceRange(Element.Key->getBeginLoc(), in BuildObjCDictionaryLiteral()
1037 Element.Value->getEndLoc()); in BuildObjCDictionaryLiteral()