Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:EXCLUSIVE_LOCK_FUNCTION

11 #define EXCLUSIVE_LOCK_FUNCTION(...)    __attribute__ ((exclusive_lock_function(__VA_ARGS__)))
29 void Lock() EXCLUSIVE_LOCK_FUNCTION();
78 void needLock() EXCLUSIVE_LOCK_FUNCTION(foomu);
82 void needLock() EXCLUSIVE_LOCK_FUNCTION(foomu);
566 #if !__has_attribute(exclusive_lock_function)
567 #error "Should support exclusive_lock_function attribute"
572 void elf_function() EXCLUSIVE_LOCK_FUNCTION();
574 void elf_function_args() EXCLUSIVE_LOCK_FUNCTION(mu1, mu2);
576 int elf_testfn(int y) EXCLUSIVE_LOCK_FUNCTION();
579 int x EXCLUSIVE_LOCK_FUNCTION() = y; // \
580 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
584 int elf_test_var EXCLUSIVE_LOCK_FUNCTION(); // \
585 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
589 int test_field EXCLUSIVE_LOCK_FUNCTION(); // \
590 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
591 void test_method() EXCLUSIVE_LOCK_FUNCTION();
594 class EXCLUSIVE_LOCK_FUNCTION() ElfTestClass { // \
595 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
598 void elf_fun_params(int lvar EXCLUSIVE_LOCK_FUNCTION()); // \
599 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
604 int elf_function_1() EXCLUSIVE_LOCK_FUNCTION(muWrapper.mu);
605 int elf_function_2() EXCLUSIVE_LOCK_FUNCTION(muDoubleWrapper.muWrapper->mu);
606 int elf_function_3() EXCLUSIVE_LOCK_FUNCTION(muWrapper.getMu());
607 int elf_function_4() EXCLUSIVE_LOCK_FUNCTION(*muWrapper.getMuPointer());
608 int elf_function_5() EXCLUSIVE_LOCK_FUNCTION(&mu1);
609 int elf_function_6() EXCLUSIVE_LOCK_FUNCTION(muRef);
610 int elf_function_7() EXCLUSIVE_LOCK_FUNCTION(muDoubleWrapper.getWrapper()->getMu());
611 int elf_function_8() EXCLUSIVE_LOCK_FUNCTION(muPointer);
612 int elf_function_9(Mutex x) EXCLUSIVE_LOCK_FUNCTION(1);
613 int elf_function_9(Mutex x, Mutex y) EXCLUSIVE_LOCK_FUNCTION(1,2);
617 int elf_function_bad_2() EXCLUSIVE_LOCK_FUNCTION("mu"); // \
618 // expected-warning {{ignoring 'exclusive_lock_function' attribute because its argument is invalid}}
619 int elf_function_bad_3() EXCLUSIVE_LOCK_FUNCTION(muDoublePointer); // \
620 // expected-warning {{'exclusive_lock_function' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'Mutex **'}}
621 int elf_function_bad_4() EXCLUSIVE_LOCK_FUNCTION(umu); // \
622 // expected-warning {{'exclusive_lock_function' attribute requires arguments whose type is annotated with 'capability' attribute}}
624 int elf_function_bad_1() EXCLUSIVE_LOCK_FUNCTION(1); // \
625 // expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: no parameters to index into}}
626 int elf_function_bad_5(Mutex x) EXCLUSIVE_LOCK_FUNCTION(0); // \
627 // expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: can only be 1, since there is one parameter}}
628 int elf_function_bad_6(Mutex x, Mutex y) EXCLUSIVE_LOCK_FUNCTION(0); // \
629 // expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: must be between 1 and 2}}
630 int elf_function_bad_7() EXCLUSIVE_LOCK_FUNCTION(0); // \
631 // expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: no parameters to index into}}
1290 void lock() EXCLUSIVE_LOCK_FUNCTION() { }
1414 void lock() EXCLUSIVE_LOCK_FUNCTION();