reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

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