Lines Matching full:owner
4 int [[gsl::Owner]] i;
5 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
6 void [[gsl::Owner]] f();
7 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
9 [[gsl::Owner]] void f();
10 // expected-warning@-1 {{'Owner' attribute only applies to structs}}
12 union [[gsl::Owner(int)]] Union{};
13 // expected-warning@-1 {{'Owner' attribute only applies to structs}}
18 S [[gsl::Owner]] Instance;
19 // expected-error@-1 {{'Owner' attribute cannot be applied to types}}
21 class [[gsl::Owner(7)]] OwnerDerefNoType{};
27 class [[gsl::Owner(int)]] [[gsl::Pointer(int)]] BothOwnerPointer{};
28 // expected-error@-1 {{'Pointer' and 'Owner' attributes are not compatible}}
33 class [[gsl::Owner(void)]] OwnerVoidDerefType{};
43 class [[gsl::Owner(int)]] AddConflictLater;
44 // expected-error@-1 {{'Owner' and 'Pointer' attributes are not compatible}}
49 class [[gsl::Owner(int)]] AddConflictLater2{};
52 class [[gsl::Owner(float)]] AddConflictLater2;
53 // expected-error@-1 {{'Owner' and 'Owner' attributes are not compatible}}
58 class [[gsl::Owner()]] [[gsl::Owner(int)]] WithAndWithoutParameter{};
59 // expected-error@-1 {{'Owner' and 'Owner' attributes are not compatible}}
64 class [[gsl::Owner(int &)]] ReferenceType{};
65 // expected-error@-1 {{a reference type is an invalid argument to attribute 'Owner'}}
70 class [[gsl::Owner]] OwnerMissingParameter{};
78 class [[gsl::Owner()]] OwnerWithEmptyParameterList{};
86 struct [[gsl::Owner(int)]] AnOwner{};
95 class [[gsl::Owner(int)]] [[gsl::Owner(int)]] DuplicateOwner{};
103 class [[gsl::Owner(int)]] AddTheSameLater{};
107 class [[gsl::Owner(int)]] AddTheSameLater;
112 class [[gsl::Owner]] ForwardDeclared;
120 class [[gsl::Owner]] ForwardDeclared {