Lines Matching refs:LOCKS_EXCLUDED
19 #define LOCKS_EXCLUDED(...) __attribute__ ((locks_excluded(__VA_ARGS__)))
997 #if !__has_attribute(locks_excluded)
998 #error "Should support locks_excluded attribute"
1003 void le_function() __attribute__((locks_excluded)); // \
1004 // expected-error {{'locks_excluded' attribute takes at least 1 argument}}
1006 void le_function_arg() LOCKS_EXCLUDED(mu1);
1008 void le_function_args() LOCKS_EXCLUDED(mu1, mu2);
1010 int le_testfn(int y) LOCKS_EXCLUDED(mu1);
1013 int x LOCKS_EXCLUDED(mu1) = y; // \
1014 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1018 int le_test_var LOCKS_EXCLUDED(mu1); // \
1019 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1021 void le_fun_params(int lvar LOCKS_EXCLUDED(mu1)); // \
1022 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1026 int test_field LOCKS_EXCLUDED(mu1); // \
1027 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1028 void test_method() LOCKS_EXCLUDED(mu1);
1031 class LOCKS_EXCLUDED(mu1) LeTestClass { // \
1032 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1038 int le_function_1() LOCKS_EXCLUDED(muWrapper.mu);
1039 int le_function_2() LOCKS_EXCLUDED(muDoubleWrapper.muWrapper->mu);
1040 int le_function_3() LOCKS_EXCLUDED(muWrapper.getMu());
1041 int le_function_4() LOCKS_EXCLUDED(*muWrapper.getMuPointer());
1042 int le_function_5() LOCKS_EXCLUDED(&mu1);
1043 int le_function_6() LOCKS_EXCLUDED(muRef);
1044 int le_function_7() LOCKS_EXCLUDED(muDoubleWrapper.getWrapper()->getMu());
1045 int le_function_8() LOCKS_EXCLUDED(muPointer);
1049 int le_function_bad_1() LOCKS_EXCLUDED(1); // \
1050 // expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'int'}}
1051 int le_function_bad_2() LOCKS_EXCLUDED("mu"); // \
1052 // expected-warning {{ignoring 'locks_excluded' attribute because its argument is invalid}}
1053 int le_function_bad_3() LOCKS_EXCLUDED(muDoublePointer); // \
1054 // expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'Mutex **'}}
1055 int le_function_bad_4() LOCKS_EXCLUDED(umu); // \
1056 // expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'capability' attribute}}
1448 void Foo::bar(Mutex* mu) LOCKS_EXCLUDED(mu) { } // \
1450 // expected-warning {{attribute locks_excluded ignored, because it is not attached to a declaration}}