Lines Matching full:attribute
100 #error "Should support no_thread_safety_analysis attribute"
106 // expected-error {{'no_thread_safety_analysis' attribute takes no arguments}}
112 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}} in noanal_testfn()
117 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}}
122 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}}
127 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}}
131 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}}
135 // Guarded Var Attribute (gv)
139 #error "Should support guarded_var attribute"
145 // expected-error {{'guarded_var' attribute takes no arguments}}
151 // expected-error {{'guarded_var' attribute takes no arguments}}
155 // expected-warning {{'guarded_var' attribute only applies to fields and global variables}}
159 // expected-warning {{'guarded_var' attribute only applies to fields and global variables}}
162 // expected-warning {{'guarded_var' attribute only applies to fields and global variables}}
166 // expected-warning {{'guarded_var' attribute only applies to fields and global variables}} in gv_testfn()
171 // Pt Guarded Var Attribute (pgv)
177 #error "Should support pt_guarded_var attribute"
191 // expected-error {{'pt_guarded_var' attribute takes no arguments}}
195 // expected-warning {{'pt_guarded_var' attribute only applies to fields and global variables}}
199 // expected-error {{'pt_guarded_var' attribute takes no arguments}}
203 // expected-warning {{'pt_guarded_var' attribute only applies to fields and global variables}}
206 // expected-warning {{'pt_guarded_var' attribute only applies to fields and global variables}}
210 // expected-warning {{'pt_guarded_var' attribute only applies to fields and global variables}} in pgv_testfn()
215 // Lockable Attribute (l)
221 #error "Should support lockable attribute"
228 // expected-error {{'lockable' attribute takes no arguments}}
232 // expected-warning {{'lockable' attribute only applies to struct, union or class}}
236 // expected-warning {{'lockable' attribute only applies to struct, union or class}} in l_testfn()
241 // expected-warning {{'lockable' attribute only applies to struct, union or class}}
246 // expected-warning {{'lockable' attribute only applies to struct, union or class}}
248 // expected-warning {{'lockable' attribute only applies to struct, union or class}}
253 // expected-warning {{'lockable' attribute only applies to struct, union or class}}
257 // Scoped Lockable Attribute (sl)
261 #error "Should support scoped_lockable attribute"
268 // expected-error {{'scoped_lockable' attribute takes no arguments}}
272 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}}
276 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}} in sl_testfn()
281 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}}
286 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}}
288 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}}
293 // expected-warning {{'scoped_lockable' attribute only applies to struct, union or class}}
297 // Guarded By Attribute (gb)
300 // FIXME: Eventually, would we like this attribute to take more than 1 arg?
303 #error "Should support guarded_by attribute"
310 int gb_non_ascii GUARDED_BY(L"wide"); // expected-warning {{ignoring 'guarded_by' attribute because…
313 // expected-error {{'guarded_by' attribute takes one argument}}
316 // expected-error {{'guarded_by' attribute takes one argument}}
321 // expected-error {{'guarded_by' attribute takes one argument}}
326 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}} in GUARDED_BY()
330 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
333 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
337 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}} in gb_testfn()
343 // legal attribute arguments
354 // illegal attribute arguments
356 …// expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capa…
358 // expected-warning {{ignoring 'guarded_by' attribute because its argument is invalid}}
360 …// expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capa…
362 …// expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capa…
369 // Pt Guarded By Attribute (pgb)
373 #error "Should support pt_guarded_by attribute"
379 // expected-error {{'pt_guarded_by' attribute takes one argument}}
384 // expected-error {{'pt_guarded_by' attribute takes one argument}}
392 // expected-error {{'pt_guarded_by' attribute takes one argument}}
397 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}} in PT_GUARDED_BY()
401 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
404 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
408 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}} in pgb_testfn()
414 // legal attribute arguments
425 // illegal attribute arguments
427 … expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'cap…
429 // expected-warning {{ignoring 'pt_guarded_by' attribute because its argument is invalid}}
431 … expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'cap…
433 … expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'cap…
440 // FIXME: Would we like this attribute to take more than 1 arg?
443 #error "Should support acquired_after attribute"
449 // expected-error {{'acquired_after' attribute takes at least 1 argument}}
454 // expected-error {{'acquired_after' attribute takes at least 1 argument}}
459 // expected-warning {{'acquired_after' attribute only applies to fields and global variables}} in ACQUIRED_AFTER()
463 // expected-warning {{'acquired_after' attribute only applies to fields and global variables}}
466 // expected-warning {{'acquired_after' attribute only applies to fields and global variables}}
470 // expected-warning {{'acquired_after' attribute only applies to fields and global variables}} in aa_testfn()
475 // legal attribute arguments
486 // illegal attribute arguments
488 …expected-warning {{'acquired_after' attribute requires arguments whose type is annotated with 'cap…
490 // expected-warning {{ignoring 'acquired_after' attribute because its argument is invalid}}
492 …expected-warning {{'acquired_after' attribute requires arguments whose type is annotated with 'cap…
494 …expected-warning {{'acquired_after' attribute requires arguments whose type is annotated with 'cap…
496 …cted-warning {{'acquired_after' attribute can only be applied in a context annotated with 'capabil…
503 #error "Should support acquired_before attribute"
509 // expected-error {{'acquired_before' attribute takes at least 1 argument}}
514 // expected-error {{'acquired_before' attribute takes at least 1 argument}}
519 // expected-warning {{'acquired_before' attribute only applies to fields and global variables}} in ACQUIRED_BEFORE()
523 // expected-warning {{'acquired_before' attribute only applies to fields and global variables}}
526 // expected-warning {{'acquired_before' attribute only applies to fields and global variables}}
530 // expected-warning {{'acquired_before' attribute only applies to fields and global variables}} in ab_testfn()
538 // legal attribute arguments
549 // illegal attribute arguments
551 …xpected-warning {{'acquired_before' attribute requires arguments whose type is annotated with 'cap…
553 // expected-warning {{ignoring 'acquired_before' attribute because its argument is invalid}}
555 …xpected-warning {{'acquired_before' attribute requires arguments whose type is annotated with 'cap…
557 …xpected-warning {{'acquired_before' attribute requires arguments whose type is annotated with 'cap…
559 …ted-warning {{'acquired_before' attribute can only be applied in a context annotated with 'capabil…
567 #error "Should support exclusive_lock_function attribute"
580 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}} in elf_testfn()
585 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
590 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
595 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}} in EXCLUSIVE_LOCK_FUNCTION()
599 // expected-warning {{'exclusive_lock_function' attribute only applies to functions}}
603 // legal attribute arguments
616 // illegal attribute arguments
618 …// expected-warning {{ignoring 'exclusive_lock_function' attribute because its argument is invalid…
620 …warning {{'exclusive_lock_function' attribute requires arguments whose type is annotated with 'cap…
622 …warning {{'exclusive_lock_function' attribute requires arguments whose type is annotated with 'cap…
625 …// expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: no parameter…
627 …// expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: can only be …
629 …// expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: must be betw…
631 …// expected-error {{'exclusive_lock_function' attribute parameter 1 is out of bounds: no parameter…
639 #error "Should support shared_lock_function attribute"
652 // expected-warning {{'shared_lock_function' attribute only applies to functions}} in slf_testfn()
657 // expected-warning {{'shared_lock_function' attribute only applies to functions}}
660 // expected-warning {{'shared_lock_function' attribute only applies to functions}}
665 // expected-warning {{'shared_lock_function' attribute only applies to functions}}
670 // expected-warning {{'shared_lock_function' attribute only applies to functions}} in SHARED_LOCK_FUNCTION()
675 // legal attribute arguments
688 // illegal attribute arguments
690 // expected-warning {{ignoring 'shared_lock_function' attribute because its argument is invalid}}
692 …ed-warning {{'shared_lock_function' attribute requires arguments whose type is annotated with 'cap…
694 …ed-warning {{'shared_lock_function' attribute requires arguments whose type is annotated with 'cap…
697 …// expected-error {{'shared_lock_function' attribute parameter 1 is out of bounds: no parameters t…
699 …// expected-error {{'shared_lock_function' attribute parameter 1 is out of bounds: can only be 1, …
701 …// expected-error {{'shared_lock_function' attribute parameter 1 is out of bounds: must be between…
703 …// expected-error {{'shared_lock_function' attribute parameter 1 is out of bounds: no parameters t…
711 #error "Should support exclusive_trylock_function attribute"
718 // expected-error {{'exclusive_trylock_function' attribute takes at least 1 argument}}
728 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions}} in etf_testfn()
733 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions}}
738 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions}}
743 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions}}
747 // expected-warning {{'exclusive_trylock_function' attribute only applies to functions}}
751 // legal attribute arguments
763 // illegal attribute arguments
765 …// expected-error {{'exclusive_trylock_function' attribute requires parameter 1 to be int or bool}}
767 …// expected-error {{'exclusive_trylock_function' attribute requires parameter 1 to be int or bool}}
769 …// expected-error {{'exclusive_trylock_function' attribute requires parameter 1 to be int or bool}}
772 …// expected-warning {{ignoring 'exclusive_trylock_function' attribute because its argument is inva…
774 …ning {{'exclusive_trylock_function' attribute requires arguments whose type is annotated with 'cap…
776 …ning {{'exclusive_trylock_function' attribute requires arguments whose type is annotated with 'cap…
784 #error "Should support shared_trylock_function attribute"
791 // expected-error {{'shared_trylock_function' attribute takes at least 1 argument}}
801 // expected-warning {{'shared_trylock_function' attribute only applies to functions}} in stf_testfn()
806 // expected-warning {{'shared_trylock_function' attribute only applies to functions}}
809 // expected-warning {{'shared_trylock_function' attribute only applies to functions}}
815 // expected-warning {{'shared_trylock_function' attribute only applies to functions}}
820 // expected-warning {{'shared_trylock_function' attribute only applies to functions}}
825 // legal attribute arguments
837 // illegal attribute arguments
839 // expected-error {{'shared_trylock_function' attribute requires parameter 1 to be int or bool}}
841 // expected-error {{'shared_trylock_function' attribute requires parameter 1 to be int or bool}}
843 // expected-error {{'shared_trylock_function' attribute requires parameter 1 to be int or bool}}
846 …// expected-warning {{ignoring 'shared_trylock_function' attribute because its argument is invalid…
848 …warning {{'shared_trylock_function' attribute requires arguments whose type is annotated with 'cap…
850 …warning {{'shared_trylock_function' attribute requires arguments whose type is annotated with 'cap…
858 #error "Should support unlock_function attribute"
871 // expected-warning {{'unlock_function' attribute only applies to functions}} in uf_testfn()
876 // expected-warning {{'unlock_function' attribute only applies to functions}}
881 // expected-warning {{'unlock_function' attribute only applies to functions}}
886 // expected-warning {{'no_thread_safety_analysis' attribute only applies to functions}}
890 // expected-warning {{'unlock_function' attribute only applies to functions}}
894 // legal attribute arguments
907 // illegal attribute arguments
909 // expected-warning {{ignoring 'unlock_function' attribute because its argument is invalid}}
911 …xpected-warning {{'unlock_function' attribute requires arguments whose type is annotated with 'cap…
913 …xpected-warning {{'unlock_function' attribute requires arguments whose type is annotated with 'cap…
916 …// expected-error {{'unlock_function' attribute parameter 1 is out of bounds: no parameters to ind…
918 …// expected-error {{'unlock_function' attribute parameter 1 is out of bounds: can only be 1, since…
920 …// expected-error {{'unlock_function' attribute parameter 1 is out of bounds: must be between 1 an…
922 …// expected-error {{'unlock_function' attribute parameter 1 is out of bounds: no parameters to ind…
930 #error "Should support lock_returned attribute"
936 // expected-error {{'lock_returned' attribute takes one argument}}
941 // expected-error {{'lock_returned' attribute takes one argument}}
947 // expected-warning {{'lock_returned' attribute only applies to functions}} in lr_testfn()
952 // expected-warning {{'lock_returned' attribute only applies to functions}}
955 // expected-warning {{'lock_returned' attribute only applies to functions}}
960 // expected-warning {{'lock_returned' attribute only applies to functions}}
965 // expected-warning {{'lock_returned' attribute only applies to functions}} in LOCK_RETURNED()
970 // legal attribute arguments
981 // illegal attribute arguments
983 … expected-warning {{'lock_returned' attribute requires arguments whose type is annotated with 'cap…
985 // expected-warning {{ignoring 'lock_returned' attribute because its argument is invalid}}
987 … expected-warning {{'lock_returned' attribute requires arguments whose type is annotated with 'cap…
989 … expected-warning {{'lock_returned' attribute requires arguments whose type is annotated with 'cap…
998 #error "Should support locks_excluded attribute"
1004 // expected-error {{'locks_excluded' attribute takes at least 1 argument}}
1014 // expected-warning {{'locks_excluded' attribute only applies to functions}} in le_testfn()
1019 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1022 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1027 // expected-warning {{'locks_excluded' attribute only applies to functions}}
1032 // expected-warning {{'locks_excluded' attribute only applies to functions}} in LOCKS_EXCLUDED()
1037 // legal attribute arguments
1048 // illegal attribute arguments
1050 …expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'cap…
1052 // expected-warning {{ignoring 'locks_excluded' attribute because its argument is invalid}}
1054 …expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'cap…
1056 …expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'cap…
1065 #error "Should support exclusive_locks_required attribute"
1071 // expected-error {{'exclusive_locks_required' attribute takes at least 1 argument}}
1081 // expected-warning {{'exclusive_locks_required' attribute only applies to functions}} in elr_testfn()
1086 // expected-warning {{'exclusive_locks_required' attribute only applies to functions}}
1089 // expected-warning {{'exclusive_locks_required' attribute only applies to functions}}
1094 // expected-warning {{'exclusive_locks_required' attribute only applies to functions}}
1099 // expected-warning {{'exclusive_locks_required' attribute only applies to functions}} in EXCLUSIVE_LOCKS_REQUIRED()
1104 // legal attribute arguments
1115 // illegal attribute arguments
1117 …arning {{'exclusive_locks_required' attribute requires arguments whose type is annotated with 'cap…
1119 …// expected-warning {{ignoring 'exclusive_locks_required' attribute because its argument is invali…
1121 …arning {{'exclusive_locks_required' attribute requires arguments whose type is annotated with 'cap…
1123 …arning {{'exclusive_locks_required' attribute requires arguments whose type is annotated with 'cap…
1133 #error "Should support shared_locks_required attribute"
1139 // expected-error {{'shared_locks_required' attribute takes at least 1 argument}}
1149 // expected-warning {{'shared_locks_required' attribute only applies to functions}} in slr_testfn()
1154 // expected-warning {{'shared_locks_required' attribute only applies to functions}}
1157 // expected-warning {{'shared_locks_required' attribute only applies to functions}}
1162 // expected-warning {{'shared_locks_required' attribute only applies to functions}}
1167 // expected-warning {{'shared_locks_required' attribute only applies to functions}} in SHARED_LOCKS_REQUIRED()
1172 // legal attribute arguments
1183 // illegal attribute arguments
1185 …d-warning {{'shared_locks_required' attribute requires arguments whose type is annotated with 'cap…
1187 // expected-warning {{ignoring 'shared_locks_required' attribute because its argument is invalid}}
1189 …d-warning {{'shared_locks_required' attribute requires arguments whose type is annotated with 'cap…
1191 …d-warning {{'shared_locks_required' attribute requires arguments whose type is annotated with 'cap…
1433 …// expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capa…
1450 …// expected-warning {{attribute locks_excluded ignored, because it is not attached to a declaratio…