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

References

gen/tools/clang/include/clang/AST/AttrImpl.inc
 5378 NSReturnsRetainedAttr *NSReturnsRetainedAttr::clone(ASTContext &C) const {
 5379   auto *A = new (C) NSReturnsRetainedAttr(C, *this);
 5379   auto *A = new (C) NSReturnsRetainedAttr(C, *this);
11762     return cast<NSReturnsRetainedAttr>(this)->getSpelling();
12342     return cast<NSReturnsRetainedAttr>(this)->clone(C);
12922     return cast<NSReturnsRetainedAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrVisitor.inc
  543   bool TraverseNSReturnsRetainedAttr(NSReturnsRetainedAttr *A);
  544   bool VisitNSReturnsRetainedAttr(NSReturnsRetainedAttr *A) {
 2464 bool VISITORCLASS<Derived>::TraverseNSReturnsRetainedAttr(NSReturnsRetainedAttr *A) {
 4222       return getDerived().TraverseNSReturnsRetainedAttr(cast<NSReturnsRetainedAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc
 7334   static NSReturnsRetainedAttr *CreateImplicit(ASTContext &Ctx, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 7335     auto *A = new (Ctx) NSReturnsRetainedAttr(Ctx, CommonInfo);
 7335     auto *A = new (Ctx) NSReturnsRetainedAttr(Ctx, CommonInfo);
 7342   static NSReturnsRetainedAttr *Create(ASTContext &Ctx, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 7343     auto *A = new (Ctx) NSReturnsRetainedAttr(Ctx, CommonInfo);
 7343     auto *A = new (Ctx) NSReturnsRetainedAttr(Ctx, CommonInfo);
 7349   static NSReturnsRetainedAttr *CreateImplicit(ASTContext &Ctx, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 7353   static NSReturnsRetainedAttr *Create(ASTContext &Ctx, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 7363   NSReturnsRetainedAttr *clone(ASTContext &C) const;
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc
  666       const auto *A = cast<NSReturnsRetainedAttr>(At);
  666       const auto *A = cast<NSReturnsRetainedAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
 1210     New = new (Context) NSReturnsRetainedAttr(Context, Info);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc
  919     const auto *SA = cast<NSReturnsRetainedAttr>(A);
  919     const auto *SA = cast<NSReturnsRetainedAttr>(A);
include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
tools/clang/include/clang/AST/AttrIterator.h
   52     while (Current != I && !isa<SpecificAttr>(*Current))
   57   using value_type = SpecificAttr *;
   58   using reference = SpecificAttr *;
   59   using pointer = SpecificAttr *;
  101 inline specific_attr_iterator<SpecificAttr, Container>
  106 inline specific_attr_iterator<SpecificAttr, Container>
  113   return specific_attr_begin<SpecificAttr>(container) !=
  114           specific_attr_end<SpecificAttr>(container);
tools/clang/include/clang/AST/DeclBase.h
  543     return hasAttrs() && hasSpecificAttr<T>(getAttrs());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1524                                 FuncDecl->hasAttr<NSReturnsRetainedAttr>() ||
 1645        MethodDecl->hasAttr<NSReturnsRetainedAttr>() ||
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  187         if (!method->hasAttr<NSReturnsRetainedAttr>()) {
tools/clang/lib/Analysis/RetainSummaryManager.cpp
   35   return std::is_same<T, P>::value || isOneOf<T, ToCompare...>();
   35   return std::is_same<T, P>::value || isOneOf<T, ToCompare...>();
   35   return std::is_same<T, P>::value || isOneOf<T, ToCompare...>();
   35   return std::is_same<T, P>::value || isOneOf<T, ToCompare...>();
   71   if (isOneOf<T, CFConsumedAttr, CFReturnsRetainedAttr,
   77   } else if (isOneOf<T, NSConsumedAttr, NSConsumesSelfAttr,
   78                      NSReturnsAutoreleasedAttr, NSReturnsRetainedAttr,
   84     if (isOneOf<T, NSReturnsRetainedAttr, NSReturnsAutoreleasedAttr,
   84     if (isOneOf<T, NSReturnsRetainedAttr, NSReturnsAutoreleasedAttr,
   89   } else if (isOneOf<T, OSConsumedAttr, OSConsumesThisAttr,
   96   } else if (isOneOf<T, GeneralizedReturnsNotRetainedAttr,
  103   if (D->hasAttr<T>())
  861   if (hasAnyEnabledAttrOf<NSReturnsRetainedAttr>(D, RetTy))
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCall.cpp
  489       MD->hasAttr<NSReturnsRetainedAttr>())
tools/clang/lib/Sema/SemaDeclAttr.cpp
  404   D->addAttr(::new (S.Context) AttrType(S.Context, CI));
 5084       handleSimpleAttribute<NSReturnsRetainedAttr>(S, D, AL);
tools/clang/lib/Sema/SemaDeclObjC.cpp
  183   if ((NewMethod->hasAttr<NSReturnsRetainedAttr>() !=
  184        Overridden->hasAttr<NSReturnsRetainedAttr>())) {
  262     if (method->hasAttr<NSReturnsRetainedAttr>())
  270     if (method->hasAttr<NSReturnsRetainedAttr>() ||
  277   method->addAttr(NSReturnsRetainedAttr::CreateImplicit(Context));
 3237       (left->hasAttr<NSReturnsRetainedAttr>()
 3238          != right->hasAttr<NSReturnsRetainedAttr>() ||
tools/clang/lib/Sema/SemaExprCXX.cpp
 6438       ReturnsRetained = (D && D->hasAttr<NSReturnsRetainedAttr>());
tools/clang/lib/Sema/SemaExprObjC.cpp
 3099                 if (SelMethod->hasAttr<NSReturnsRetainedAttr>()) {
tools/clang/lib/Sema/SemaType.cpp
 3969 static AttrT *createSimpleAttr(ASTContext &Ctx, ParsedAttr &AL) {
 3971   return ::new (Ctx) AttrT(Ctx, AL);
 6885         createSimpleAttr<NSReturnsRetainedAttr>(S.Context, attr),
usr/include/c++/7.4.0/type_traits
 1558     { typedef _Tp     type; };
 1580     { typedef _Tp const     type; };