Home
last modified time | relevance | path

Searched refs:OrigElement (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Sema/
DSemaExprObjC.cpp410 Expr *OrigElement = Element; in CheckObjCCollectionLiteralElement() local
424 if (isa<IntegerLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
425 isa<CharacterLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
426 isa<FloatingLiteral>(OrigElement) || in CheckObjCCollectionLiteralElement()
427 isa<ObjCBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
428 isa<CXXBoolLiteralExpr>(OrigElement)) { in CheckObjCCollectionLiteralElement()
429 if (S.NSAPIObj->getNSNumberFactoryMethodKind(OrigElement->getType())) { in CheckObjCCollectionLiteralElement()
430 int Which = isa<CharacterLiteral>(OrigElement) ? 1 in CheckObjCCollectionLiteralElement()
431 : (isa<CXXBoolLiteralExpr>(OrigElement) || in CheckObjCCollectionLiteralElement()
432 isa<ObjCBoolLiteralExpr>(OrigElement)) ? 2 in CheckObjCCollectionLiteralElement()
[all …]
DTreeTransform.h10950 ObjCDictionaryElement OrigElement = E->getKeyValueElement(I); in TransformObjCDictionaryLiteral() local
10952 if (OrigElement.isPackExpansion()) { in TransformObjCDictionaryLiteral()
10955 getSema().collectUnexpandedParameterPacks(OrigElement.Key, Unexpanded); in TransformObjCDictionaryLiteral()
10956 getSema().collectUnexpandedParameterPacks(OrigElement.Value, Unexpanded); in TransformObjCDictionaryLiteral()
10963 Optional<unsigned> OrigNumExpansions = OrigElement.NumExpansions; in TransformObjCDictionaryLiteral()
10965 SourceRange PatternRange(OrigElement.Key->getLocStart(), in TransformObjCDictionaryLiteral()
10966 OrigElement.Value->getLocEnd()); in TransformObjCDictionaryLiteral()
10967 if (getDerived().TryExpandParameterPacks(OrigElement.EllipsisLoc, in TransformObjCDictionaryLiteral()
10979 ExprResult Key = getDerived().TransformExpr(OrigElement.Key); in TransformObjCDictionaryLiteral()
10983 if (Key.get() != OrigElement.Key) in TransformObjCDictionaryLiteral()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaExprObjC.cpp411 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()
[all …]
DTreeTransform.h13349 ObjCDictionaryElement OrigElement = E->getKeyValueElement(I); in TransformObjCDictionaryLiteral() local
13351 if (OrigElement.isPackExpansion()) { in TransformObjCDictionaryLiteral()
13354 getSema().collectUnexpandedParameterPacks(OrigElement.Key, Unexpanded); in TransformObjCDictionaryLiteral()
13355 getSema().collectUnexpandedParameterPacks(OrigElement.Value, Unexpanded); in TransformObjCDictionaryLiteral()
13362 Optional<unsigned> OrigNumExpansions = OrigElement.NumExpansions; in TransformObjCDictionaryLiteral()
13364 SourceRange PatternRange(OrigElement.Key->getBeginLoc(), in TransformObjCDictionaryLiteral()
13365 OrigElement.Value->getEndLoc()); in TransformObjCDictionaryLiteral()
13366 if (getDerived().TryExpandParameterPacks(OrigElement.EllipsisLoc, in TransformObjCDictionaryLiteral()
13376 ExprResult Key = getDerived().TransformExpr(OrigElement.Key); in TransformObjCDictionaryLiteral()
13380 if (Key.get() != OrigElement.Key) in TransformObjCDictionaryLiteral()
[all …]