Lines Matching defs:AddNonNull
31 struct AddNonNull {
37 typedef AddNonNull<int *>::type nonnull_int_ptr_1;
38 typedef AddNonNull<int * _Nullable>::type nonnull_int_ptr_2; // FIXME: check that it was overridden
39 typedef AddNonNull<nullptr_t>::type nonnull_int_ptr_3; // expected-note{{in instantiation of template class}}
41 typedef AddNonNull<int>::type nonnull_non_pointer_1; // expected-note{{in instantiation of template class 'AddNonNull<int>' requested here}}
45 typedef AddNonNull<NotPtr>::type nonnull_non_pointer_2; // expected-note{{in instantiation}}
54 typedef AddNonNull<SmartPtr>::type nonnull_smart_pointer_1;
56 typedef AddNonNull<SmartPtrTemplate<int>>::type nonnull_smart_pointer_2;
62 typedef AddNonNull<std::unique_ptr<int>>::type nonnull_smart_pointer_3;
63 typedef AddNonNull<std::function<int()>>::type nonnull_smart_pointer_4;
73 typedef _Nonnull AddNonNull<T> invalid1; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull<T>'}}
76 typedef _Nonnull typename AddNonNull<T>::type okay1;
80 typedef _Nonnull AddNonNull<T> (*invalid4); // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'AddNonNull<T>'}}