Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:EXCLUSIVE_TRYLOCK_FUNCTION

13 #define EXCLUSIVE_TRYLOCK_FUNCTION(...) __attribute__ ((exclusive_trylock_function(__VA_ARGS__)))
698 #if !__has_attribute(exclusive_trylock_function)
699 #error "Should support exclusive_trylock_function attribute"
705 void etf_function() __attribute__((exclusive_trylock_function)); // \
708 void etf_function_args() __attribute__((exclusive_trylock_function(1, mu2)));
710 void etf_function_arg() __attribute__((exclusive_trylock_function(1)));
712 int etf_testfn(int y) __attribute__((exclusive_trylock_function(1)));
715 int x __attribute__((exclusive_trylock_function(1))) = y; // \
716 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions and methods}}
720 int etf_test_var __attribute__((exclusive_trylock_function(1))); // \
721 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions and methods}}
725 int test_field __attribute__((exclusive_trylock_function(1))); // \
726 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions and methods}}
727 void test_method() __attribute__((exclusive_trylock_function(1)));
730 class __attribute__((exclusive_trylock_function(1))) EtfTestClass { // \
731 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions and methods}}
734 void etf_fun_params(int lvar __attribute__((exclusive_trylock_function(1)))); // \
735 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions and methods}}
740 int etf_function_1() __attribute__((exclusive_trylock_function(1, muWrapper.mu)));
741 int etf_function_2() __attribute__((exclusive_trylock_function(1, muDoubleWrapper.muWrapper->mu)));
742 int etf_function_3() __attribute__((exclusive_trylock_function(1, muWrapper.getMu())));
743 int etf_function_4() __attribute__((exclusive_trylock_function(1, *muWrapper.getMuPointer())));
744 int etf_function_5() __attribute__((exclusive_trylock_function(1, &mu1)));
745 int etf_function_6() __attribute__((exclusive_trylock_function(1, muRef)));
746 int etf_function_7() __attribute__((exclusive_trylock_function(1, muDoubleWrapper.getWrapper()->getMu())));
747 int etf_functetfn_8() __attribute__((exclusive_trylock_function(1, muPointer)));
748 int etf_function_9() __attribute__((exclusive_trylock_function(true)));
752 int etf_function_bad_1() __attribute__((exclusive_trylock_function(mu1))); // \
753 // expected-error {{'exclusive_trylock_function' attribute first argument must be of int or bool type}}
754 int etf_function_bad_2() __attribute__((exclusive_trylock_function("mu"))); // \
755 // expected-error {{'exclusive_trylock_function' attribute first argument must be of int or bool type}}
756 int etf_function_bad_3() __attribute__((exclusive_trylock_function(muDoublePointer))); // \
757 // expected-error {{'exclusive_trylock_function' attribute first argument must be of int or bool type}}
759 int etf_function_bad_4() __attribute__((exclusive_trylock_function(1, "mu"))); // \
760 // expected-warning {{'exclusive_trylock_function' attribute requires arguments that are class type or point to class type}}
761 int etf_function_bad_5() __attribute__((exclusive_trylock_function(1, muDoublePointer))); // \
762 // expected-warning {{'exclusive_trylock_function' attribute requires arguments that are class type or point to class type}}
763 int etf_function_bad_6() __attribute__((exclusive_trylock_function(1, umu))); // \
764 // expected-warning {{'exclusive_trylock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}