Home | History | Annotate | Download | only in Sema

Lines Matching full:capability

3 typedef int __attribute__((capability("role"))) ThreadRole;
7 // Test an invalid capability name
8 struct __attribute__((capability("wrong"))) IncorrectName {}; // expected-warning {{invalid capability name 'wrong'; capability name must be 'mutex' or 'role'}}
10 int Test1 __attribute__((capability("test1"))); // expected-error {{'capability' attribute only applies to structs and typedefs}}
16 struct __attribute__((capability(12))) Test3 {}; // expected-error {{'capability' attribute requires a string}}
19 struct __attribute__((capability)) Test5 {}; // expected-error {{'capability' attribute takes one argument}}
30 void Func5(void) __attribute__((requires_capability(1))) {} // expected-warning {{'requires_capability' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'int'}}
31 void Func6(void) __attribute__((requires_shared_capability(BadCapability))) {} // expected-warning {{'requires_shared_capability' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'struct NotACapability'}}
55 // Test that boolean logic works with capability attributes
62 void Func31(void) __attribute__((requires_capability(GUI && AlsoNotACapability))); // expected-warning {{'requires_capability' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'int'}}