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

References

tools/clang/lib/Sema/SemaDeclObjC.cpp
  225   ObjCMethodFamily family = method->getMethodFamily();
  239     if (!Context.hasSameType(method->getReturnType(), Context.VoidTy)) {
  240       SourceRange ResultTypeRange = method->getReturnTypeSourceRange();
  242         Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
  243             << method->getReturnType()
  244             << FixItHint::CreateInsertion(method->getSelectorLoc(0), "(void)");
  246         Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
  247             << method->getReturnType()
  255     if (checkInitMethod(method, QualType()))
  258     method->addAttr(NSConsumesSelfAttr::CreateImplicit(Context));
  262     if (method->hasAttr<NSReturnsRetainedAttr>())
  270     if (method->hasAttr<NSReturnsRetainedAttr>() ||
  271         method->hasAttr<NSReturnsNotRetainedAttr>() ||
  272         method->hasAttr<NSReturnsAutoreleasedAttr>())
  277   method->addAttr(NSReturnsRetainedAttr::CreateImplicit(Context));